Commit e633be20 authored by Victor Stinner's avatar Victor Stinner

Merged revisions 84701,84784 via svnmerge from

svn+ssh://pythondev@svn.python.org/python/branches/py3k

........
  r84701 | victor.stinner | 2010-09-11 02:22:12 +0200 (sam., 11 sept. 2010) | 5 lines

  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.
........
  r84784 | victor.stinner | 2010-09-13 21:41:36 +0200 (lun., 13 sept. 2010) | 2 lines

  Issue #767645: Set os.path.supports_unicode_filenames to True on Mac OS X
  (macpath module).
........
parent 9c080127
...@@ -337,8 +337,7 @@ write files see :func:`open`, and for accessing the filesystem see the ...@@ -337,8 +337,7 @@ write files see :func:`open`, and for accessing the filesystem see the
.. data:: supports_unicode_filenames .. data:: supports_unicode_filenames
True if arbitrary Unicode strings can be used as file names (within limitations True if arbitrary Unicode strings can be used as file names (within limitations
imposed by the file system), and if :func:`os.listdir` returns Unicode strings imposed by the file system).
for a Unicode argument.
.. versionadded:: 2.3 .. versionadded:: 2.3
...@@ -212,4 +212,4 @@ def realpath(path): ...@@ -212,4 +212,4 @@ def realpath(path):
pass pass
return path return path
supports_unicode_filenames = False supports_unicode_filenames = True
...@@ -43,6 +43,9 @@ Core and Builtins ...@@ -43,6 +43,9 @@ Core and Builtins
Library Library
------- -------
- Issue #767645: Set os.path.supports_unicode_filenames to True on Mac OS X
(macpath module).
- Issue #9837: The read() method of ZipExtFile objects (as returned by - Issue #9837: The read() method of ZipExtFile objects (as returned by
ZipFile.open()) could return more bytes than requested. ZipFile.open()) could return more bytes than requested.
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment