From d933cc293b03c3dda7d79694ebc029feed800e8c Mon Sep 17 00:00:00 2001 From: Georg Brandl Date: Sat, 16 May 2009 11:21:29 +0000 Subject: [PATCH] #2856: document 2.x os.listdir() behavior for undecodable filenames. --- Doc/library/os.rst | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Doc/library/os.rst b/Doc/library/os.rst index 061f1ce408f..1109a1d0970 100644 --- a/Doc/library/os.rst +++ b/Doc/library/os.rst @@ -930,7 +930,8 @@ Files and Directories .. versionchanged:: 2.3 On Windows NT/2k/XP and Unix, if *path* is a Unicode object, the result will be - a list of Unicode objects. + a list of Unicode objects. Undecodable filenames will still be returned as + string objects. .. function:: lstat(path)