bpo-41123: Remove PyLong_FromUnicode() (GH-21204)

This commit is contained in:
Inada Naoki 2020-06-29 13:00:43 +09:00 committed by GitHub
parent d9f2a13106
commit e4f1fe6edb
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
7 changed files with 5 additions and 30 deletions

View file

@ -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))