[issue3187] os.listdir can return byte strings
Benjamin Peterson
report at bugs.python.org
Sat Sep 27 02:47:29 CEST 2008
Benjamin Peterson <musiccomposition at gmail.com> added the comment:
Ok. Here's another possibility. It adds another optional parameter to
listdir. If False, bytes strings can be returned. Otherwise, the
UnicodeDecodeError is reraised.
Added file: http://bugs.python.org/file11629/force_unicode.patch
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue3187>
_______________________________________
More information about the Python-bugs-list
mailing list