Kaydet (Commit) c4bf8939 authored tarafından Just van Rossum's avatar Just van Rossum

[ 767645 ] correctly set the os.path.supports_unicode_filenames flag for OSX

üst ef6573e5
...@@ -10,6 +10,7 @@ Some of this can actually be useful on non-Posix systems too, e.g. ...@@ -10,6 +10,7 @@ Some of this can actually be useful on non-Posix systems too, e.g.
for manipulation of the pathname component of URLs. for manipulation of the pathname component of URLs.
""" """
import sys
import os import os
import stat import stat
...@@ -416,4 +417,7 @@ symbolic links encountered in the path.""" ...@@ -416,4 +417,7 @@ symbolic links encountered in the path."""
return filename return filename
supports_unicode_filenames = False if sys.platform == "darwin":
supports_unicode_filenames = True
else:
supports_unicode_filenames = False
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