[issue3187] os.listdir can return byte strings
Helmut Jarausch
report at bugs.python.org
Thu Sep 18 09:39:29 CEST 2008
Helmut Jarausch <jarausch at skynet.be> added the comment:
Hi,
is this assumed to be fixed in 3.0rc1 ?
with SVN 66506 (3.0rc1+)
for dirname, subdirs, files in os.walk(bytes(Top,'iso-8859-1')) :
still gives an error here:
for dirname, subdirs, files in os.walk(bytes(Top,'iso-8859-1')) :
File "/usr/local/lib/python3.0/os.py", line 268, in walk
if isdir(join(top, name)):
File "/usr/local/lib/python3.0/posixpath.py", line 64, in join
if b.startswith('/'):
TypeError: expected an object with the buffer interface
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue3187>
_______________________________________
More information about the Python-bugs-list
mailing list