]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
Issue #767645: fix os.path.supports_unicode_filenames definition
authorVictor Stinner <victor.stinner@haypocalc.com>
Sat, 11 Sep 2010 00:22:12 +0000 (00:22 +0000)
committerVictor Stinner <victor.stinner@haypocalc.com>
Sat, 11 Sep 2010 00:22:12 +0000 (00:22 +0000)
os.listdir(str) always returns unicode and it can return non-ascii filenames
even if supports_unicode_filenames is False.

Doc/library/os.path.rst

index 7aac5c444d7d5df2b0e7009d05bd07847d918522..92f48cfbd25fcaba292d235f39688bd262050bed 100644 (file)
@@ -320,5 +320,4 @@ applications should use string objects to access all files.
 .. data:: supports_unicode_filenames
 
    True if arbitrary Unicode strings can be used as file names (within limitations
-   imposed by the file system), and if :func:`os.listdir` returns strings that
-   contain characters that cannot be represented by ASCII.
+   imposed by the file system).