]> granicus.if.org Git - python/commit
bpo-37053: handle strings like u"bar" correctly in Tools/parser/unparse.py (GH-13583)
authorChih-Hsuan Yen <yan12125@gmail.com>
Sun, 26 May 2019 17:08:20 +0000 (01:08 +0800)
committerMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Sun, 26 May 2019 17:08:19 +0000 (10:08 -0700)
commitaaf47caf35984e614d93bd8bea5227df55e0e3e6
tree14f42690fe8234b67dac4ced92dbaff183865375
parent91f4380cedbae32b49adbea2518014a5624c6523
bpo-37053: handle strings like u"bar" correctly in Tools/parser/unparse.py (GH-13583)

Constant.kind is added in https://bugs.python.org/issue36280.
Current possible values for Constant.kind are "u" or None.

For r'bar' and b'bar', Constant.kind value is None, so there's no need
for special handling.

https://bugs.python.org/issue37053
Lib/test/test_tools/test_unparse.py
Misc/NEWS.d/next/Tools-Demos/2019-05-26-16-47-06.bpo-37053.-EYRuz.rst [new file with mode: 0644]
Tools/parser/unparse.py