mirror of
https://github.com/python/cpython.git
synced 2025-08-04 00:48:58 +00:00
Use the t# format where appropriate. Greg Stein.
This commit is contained in:
parent
b317f8aa0d
commit
7e48898d86
9 changed files with 34 additions and 37 deletions
|
@ -969,12 +969,9 @@ MPZ_mpz(self, args)
|
|||
mpz_clear(&mplongdigit);
|
||||
}
|
||||
else if (PyString_Check(objp)) {
|
||||
char *cp;
|
||||
int len;
|
||||
char *cp = PyString_AS_STRING(objp);
|
||||
int len = PyString_GET_SIZE(objp);
|
||||
MP_INT mplongdigit;
|
||||
|
||||
if (!PyArg_Parse(objp, "s#", &cp, &len))
|
||||
return NULL;
|
||||
|
||||
if ((mpzp = newmpzobject()) == NULL)
|
||||
return NULL;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue