[issue13234] os.listdir breaks with literal paths

Santoso Wijaya report at bugs.python.org
Tue Oct 25 22:51:36 CEST 2011


Santoso Wijaya <santoso.wijaya at gmail.com> added the comment:

> I don't understand this change in issue13234_py33_v4.patch (the change looks to be useless).

It's pedantic correctness on my part. SEP and ALTSEP are defined as wide strings L'\\' and L'/' respectively. Their usage in the unicode conditional branch and the bytes conditional branch seem to have been reversed.

----------

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue13234>
_______________________________________


More information about the Python-bugs-list mailing list