Skip to content

Commit

Permalink
bpo-29803: remove a redandunt op and fix a comment in unicodeobject.c (
Browse files Browse the repository at this point in the history
  • Loading branch information
zhangyangyu committed Feb 13, 2018
1 parent d019bc8 commit 2b77a92
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions Objects/unicodeobject.c
Expand Up @@ -3727,10 +3727,6 @@ PyUnicode_FSDecoder(PyObject* arg, void* addr)
}

if (PyUnicode_Check(path)) {
if (PyUnicode_READY(path) == -1) {
Py_DECREF(path);
return 0;
}
output = path;
}
else if (PyBytes_Check(path) || is_buffer) {
Expand Down Expand Up @@ -6426,7 +6422,7 @@ PyUnicode_AsRawUnicodeEscapeString(PyObject *unicode)
if (ch < 0x100) {
*p++ = (char) ch;
}
/* U+0000-U+00ff range: Map 16-bit characters to '\uHHHH' */
/* U+0100-U+ffff range: Map 16-bit characters to '\uHHHH' */
else if (ch < 0x10000) {
*p++ = '\\';
*p++ = 'u';
Expand Down

0 comments on commit 2b77a92

Please sign in to comment.