Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d019bc8 commit 2b77a92Copy full SHA for 2b77a92
1 file changed
Objects/unicodeobject.c
@@ -3727,10 +3727,6 @@ PyUnicode_FSDecoder(PyObject* arg, void* addr)
3727
}
3728
3729
if (PyUnicode_Check(path)) {
3730
- if (PyUnicode_READY(path) == -1) {
3731
- Py_DECREF(path);
3732
- return 0;
3733
- }
3734
output = path;
3735
3736
else if (PyBytes_Check(path) || is_buffer) {
@@ -6426,7 +6422,7 @@ PyUnicode_AsRawUnicodeEscapeString(PyObject *unicode)
6426
6422
if (ch < 0x100) {
6427
6423
*p++ = (char) ch;
6428
6424
6429
- /* U+0000-U+00ff range: Map 16-bit characters to '\uHHHH' */
6425
+ /* U+0100-U+ffff range: Map 16-bit characters to '\uHHHH' */
6430
else if (ch < 0x10000) {
6431
*p++ = '\\';
6432
*p++ = 'u';
0 commit comments