Hirokazu Yamamoto <ocean-c...@m2.ccsnet.ne.jp> added the comment: I hope attached patch works.
>>> import os >>> os.listdir("") Traceback (most recent call last): File "<stdin>", line 1, in <module> WindowsError: [Error 3] 指定されたパスが見つかりません。: '' [36200 refs] >>> os.listdir(u"") Traceback (most recent call last): File "<stdin>", line 1, in <module> WindowsError: [Error 3] 指定されたパスが見つかりません。: u'' # Error message says "Cannot find specified path" ---------- keywords: +patch nosy: +ocean-city Added file: http://bugs.python.org/file13861/listdir_on_empty_path.patch _______________________________________ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue5913> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com