]> granicus.if.org Git - python/commit
Revert r81171 (posix_listdir(), posix_readlink(): avoid temporary PyBytes object)
authorVictor Stinner <victor.stinner@haypocalc.com>
Fri, 14 May 2010 18:07:39 +0000 (18:07 +0000)
committerVictor Stinner <victor.stinner@haypocalc.com>
Fri, 14 May 2010 18:07:39 +0000 (18:07 +0000)
commit203406c3681cd0bfe53f44f2d731d05d8d71cd57
tree0f6210e54ac905ada3b955f2f3e8d046de115108
parent26a968d8feceb1a331b800d3e0c0e28a164b9971
Revert r81171 (posix_listdir(), posix_readlink(): avoid temporary PyBytes object)

PyUnicode_DecodeFSDefault*() doesn't use surrogateescape error handler, and so
PyUnicode_FromEncodedObject(v, Py_FileSystemDefaultEncoding, "surrogateescape")
cannot be replaced by PyUnicode_DecodeFSDefault().

It's a bad idea to try to fix surrogates things in Python 3.1...
Modules/posixmodule.c