diff options
author | Inada Naoki <songofacandy@gmail.com> | 2020-06-29 04:00:43 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-06-29 04:00:43 (GMT) |
commit | e4f1fe6edb216e04da03ae80b462ca273f00255b (patch) | |
tree | 6d6a6d56b5cae2fe05e26a4aa36fcaaa04116b50 /Objects/longobject.c | |
parent | d9f2a13106254c53550583adca70aeb3979f2993 (diff) | |
download | cpython-e4f1fe6edb216e04da03ae80b462ca273f00255b.zip cpython-e4f1fe6edb216e04da03ae80b462ca273f00255b.tar.gz cpython-e4f1fe6edb216e04da03ae80b462ca273f00255b.tar.bz2 |
bpo-41123: Remove PyLong_FromUnicode() (GH-21204)
Diffstat (limited to 'Objects/longobject.c')
-rw-r--r-- | Objects/longobject.c | 11 |
1 files changed, 0 insertions, 11 deletions
diff --git a/Objects/longobject.c b/Objects/longobject.c index d00a7a0..571f53a 100644 --- a/Objects/longobject.c +++ b/Objects/longobject.c @@ -2504,17 +2504,6 @@ _PyLong_FromBytes(const char *s, Py_ssize_t len, int base) } PyObject * -PyLong_FromUnicode(Py_UNICODE *u, Py_ssize_t length, int base) -{ - PyObject *v, *unicode = PyUnicode_FromWideChar(u, length); - if (unicode == NULL) - return NULL; - v = PyLong_FromUnicodeObject(unicode, base); - Py_DECREF(unicode); - return v; -} - -PyObject * PyLong_FromUnicodeObject(PyObject *u, int base) { PyObject *result, *asciidig; |