mirror of
https://github.com/python/cpython.git
synced 2025-07-24 11:44:31 +00:00
bpo-41123: Remove PyLong_FromUnicode() (GH-21204)
This commit is contained in:
parent
d9f2a13106
commit
e4f1fe6edb
7 changed files with 5 additions and 30 deletions
|
@ -1429,7 +1429,7 @@ PyNumber_Long(PyObject *o)
|
|||
return NULL;
|
||||
|
||||
if (PyUnicode_Check(o))
|
||||
/* The below check is done in PyLong_FromUnicode(). */
|
||||
/* The below check is done in PyLong_FromUnicodeObject(). */
|
||||
return PyLong_FromUnicodeObject(o, 10);
|
||||
|
||||
if (PyBytes_Check(o))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue