summaryrefslogtreecommitdiffstats
path: root/Objects/longobject.c
diff options
context:
space:
mode:
authorSerhiy Storchaka <storchaka@gmail.com>2016-11-20 10:16:46 (GMT)
committerSerhiy Storchaka <storchaka@gmail.com>2016-11-20 10:16:46 (GMT)
commit460bd0d284caa00eb8ccc9a28836ba30765a19cb (patch)
tree41169cfce0d00587f4222d3237a608b70577adfc /Objects/longobject.c
parent6107f46bfbe4aa7b2ddb37ca5136d1d472c3f4aa (diff)
downloadcpython-460bd0d284caa00eb8ccc9a28836ba30765a19cb.zip
cpython-460bd0d284caa00eb8ccc9a28836ba30765a19cb.tar.gz
cpython-460bd0d284caa00eb8ccc9a28836ba30765a19cb.tar.bz2
Issue #19569: Compiler warnings are now emitted if use most of deprecated
functions.
Diffstat (limited to 'Objects/longobject.c')
-rw-r--r--Objects/longobject.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/Objects/longobject.c b/Objects/longobject.c
index 822ed16..c95f946 100644
--- a/Objects/longobject.c
+++ b/Objects/longobject.c
@@ -2479,7 +2479,7 @@ _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_FromUnicode(u, length);
+ PyObject *v, *unicode = PyUnicode_FromWideChar(u, length);
if (unicode == NULL)
return NULL;
v = PyLong_FromUnicodeObject(unicode, base);