]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
Backport for SF # 659228, 'realpath' function missing from os.path
authorNeal Norwitz <nnorwitz@gmail.com>
Fri, 10 Jan 2003 23:47:53 +0000 (23:47 +0000)
committerNeal Norwitz <nnorwitz@gmail.com>
Fri, 10 Jan 2003 23:47:53 +0000 (23:47 +0000)
Lib/dospath.py
Lib/macpath.py
Lib/ntpath.py
Lib/posixpath.py

index 652b35f51f92c6672ef0c04ff7940d5f6683c766..8657d330588f2afb6212bff622d6c75a7d0c7ca0 100644 (file)
@@ -6,7 +6,7 @@ import stat
 __all__ = ["normcase","isabs","join","splitdrive","split","splitext",
            "basename","dirname","commonprefix","getsize","getmtime",
            "getatime","islink","exists","isdir","isfile","ismount",
-           "walk","expanduser","expandvars","normpath","abspath"]
+           "walk","expanduser","expandvars","normpath","abspath","realpath"]
 
 def normcase(s):
     """Normalize the case of a pathname.
index f8ca05165ac9971603c71fe36a9dee5bf114746f..bb0a85018cb21680c8206682f798656d731daa4f 100644 (file)
@@ -6,7 +6,8 @@ from stat import *
 __all__ = ["normcase","isabs","join","splitdrive","split","splitext",
            "basename","dirname","commonprefix","getsize","getmtime",
            "getatime","islink","exists","isdir","isfile",
-           "walk","expanduser","expandvars","normpath","abspath"]
+           "walk","expanduser","expandvars","normpath","abspath",
+           "realpath","supports_unicode_filenames"]
 
 # Normalize the case of a pathname.  Dummy in Posix, but <s>.lower() here.
 
index 5a63105d080b393be7d793383008f6be344c4c9a..f4f551011d27a5d6fdfd595988ee83c4e60ef594 100644 (file)
@@ -11,7 +11,8 @@ import stat
 __all__ = ["normcase","isabs","join","splitdrive","split","splitext",
            "basename","dirname","commonprefix","getsize","getmtime",
            "getatime","islink","exists","isdir","isfile","ismount",
-           "walk","expanduser","expandvars","normpath","abspath","splitunc"]
+           "walk","expanduser","expandvars","normpath","abspath","splitunc",
+           "realpath","supports_unicode_filenames"]
 
 # Normalize the case of a pathname and map slashes to backslashes.
 # Other normalizations (such as optimizing '../' away) are not done
index 81358cae377b6bfc441d00188d4a0cad410c6d70..b68fa6125a8158b17e5471a5d10e8a095307dbf8 100644 (file)
@@ -17,7 +17,7 @@ __all__ = ["normcase","isabs","join","splitdrive","split","splitext",
            "basename","dirname","commonprefix","getsize","getmtime",
            "getatime","islink","exists","isdir","isfile","ismount",
            "walk","expanduser","expandvars","normpath","abspath",
-           "samefile","sameopenfile","samestat"]
+           "samefile","sameopenfile","samestat","realpath"]
 
 # Normalize the case of a pathname.  Trivial in Posix, string.lower on Mac.
 # On MS-DOS this may also turn slashes into backslashes; however, other