From b55e498f56317d728fcbd004f8bd262db552eb7c Mon Sep 17 00:00:00 2001 From: Victor Stinner Date: Sat, 11 Sep 2010 00:22:12 +0000 Subject: [PATCH] Issue #767645: fix os.path.supports_unicode_filenames definition 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 | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/Doc/library/os.path.rst b/Doc/library/os.path.rst index 7aac5c444d7..92f48cfbd25 100644 --- a/Doc/library/os.path.rst +++ b/Doc/library/os.path.rst @@ -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).