diff options
author | Walter Dörwald <walter@livinglogic.de> | 2007-05-12 11:08:06 +0000 |
---|---|---|
committer | Walter Dörwald <walter@livinglogic.de> | 2007-05-12 11:08:06 +0000 |
commit | 40ec96630b96f077c8b5746ab0ec038f95aede8b (patch) | |
tree | 6b8a757605715d6918d1b8f90864c30107b96d29 /Python/Python-ast.c | |
parent | 6e114a41cdea6297c63ab493ef93b226d5f7cd49 (diff) | |
download | cpython-40ec96630b96f077c8b5746ab0ec038f95aede8b.tar.gz |
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 'Python/Python-ast.c')
0 files changed, 0 insertions, 0 deletions