summaryrefslogtreecommitdiffstats
path: root/Lib/compiler/visitor.py
diff options
context:
space:
mode:
authorWalter Dörwald <walter@livinglogic.de>2007-05-12 11:08:06 (GMT)
committerWalter Dörwald <walter@livinglogic.de>2007-05-12 11:08:06 (GMT)
commit79e913eac771bde5260160f9eebf475094d82aeb (patch)
tree64e09ec9bb56aa9b5efc43bfd2f1720b0505cd40 /Lib/compiler/visitor.py
parent1324c6f5e7ed0fb2d129b09fc27d3110e56e75c0 (diff)
downloadcpython-79e913eac771bde5260160f9eebf475094d82aeb.zip
cpython-79e913eac771bde5260160f9eebf475094d82aeb.tar.gz
cpython-79e913eac771bde5260160f9eebf475094d82aeb.tar.bz2
Change PyUnicode_EncodeUnicodeEscape() to return a bytes object.
However PyUnicode_AsUnicodeEscapeString() (which is used by Objects/fileobject.c::file_repr()) still returns a str8 object. Give unicode_repr() it's own implementation which returns a str8 object (it was formerly just calling unicodeescape_string() which was used to implement PyUnicode_EncodeUnicodeEscape() too), because once repr() is required to return unicode objects it needs its own implementation anyway.
Diffstat (limited to 'Lib/compiler/visitor.py')
0 files changed, 0 insertions, 0 deletions