commit | e37003e9ae82584c6f1ced32370a7d7c7e7a2974 | [log] [tgz] |
---|---|---|
author | Serhiy Storchaka <storchaka@gmail.com> | Thu Dec 03 20:47:48 2015 +0200 |
committer | Serhiy Storchaka <storchaka@gmail.com> | Thu Dec 03 20:47:48 2015 +0200 |
tree | a905a232ad291909bd094a89205dc28ae7d5df7a | |
parent | c747e5564f0315357a3e7d2f580c6d1c8a3b4ab8 [diff] [blame] |
Issue #19543: Added Py3k warning for decoding unicode.
diff --git a/Objects/unicodeobject.c b/Objects/unicodeobject.c index 9368a3a..2925651 100644 --- a/Objects/unicodeobject.c +++ b/Objects/unicodeobject.c
@@ -1288,6 +1288,9 @@ goto onError; } + if (PyErr_WarnPy3k("decoding Unicode is not supported in 3.x", 1) < 0) + goto onError; + if (encoding == NULL) encoding = PyUnicode_GetDefaultEncoding();