[New-bugs-announce] [issue24779] Python/ast.c: decode_unicode is never called with rawmode=True

Eric V. Smith report at bugs.python.org
Sun Aug 2 18:32:37 CEST 2015


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 <report at bugs.python.org>
<http://bugs.python.org/issue24779>
_______________________________________


More information about the New-bugs-announce mailing list