New submission from Eric V. Smith:
The only call to decode_unicode is this:
if (!*bytesmode && !rawmode) {
return decode_unicode(c, s, len, rawmode, c->c_encoding);
}
So rawmode will always be 0. Removing this will delete a call to
PyUnicode_DecodeRawUnicodeEscape in decode_unicode.
----------
components: Interpreter Core
messages: 247880
nosy: eric.smith
priority: normal
severity: normal
status: open
title: Python/ast.c: decode_unicode is never called with rawmode=True
versions: Python 3.5, Python 3.6
_______________________________________
Python tracker <[email protected]>
<http://bugs.python.org/issue24779>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe:
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com