summaryrefslogtreecommitdiff
path: root/Lib/posixpath.py
diff options
context:
space:
mode:
authorNeal Norwitz <nnorwitz@gmail.com>2003-01-03 18:01:57 +0000
committerNeal Norwitz <nnorwitz@gmail.com>2003-01-03 18:01:57 +0000
commit2180c7d1f791579e0ba775ea594e88f31c0b75fb (patch)
treec1bc15ab0a61eb2d1eb097bf29768dfebce7b52f /Lib/posixpath.py
parentae58c20da34ccb3cd665b4f0a0ff044720a3b553 (diff)
downloadcpython-2180c7d1f791579e0ba775ea594e88f31c0b75fb.tar.gz
Fix SF #659228, 'realpath' function missing from os.path
Also added realpath = abspath for os2emx, similar to windows/mac which also don't really implement realpath. Backport candidate, I think?
Diffstat (limited to 'Lib/posixpath.py')
-rw-r--r--Lib/posixpath.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/Lib/posixpath.py b/Lib/posixpath.py
index 8da9fdaa8c..d0179f112c 100644
--- a/Lib/posixpath.py
+++ b/Lib/posixpath.py
@@ -17,7 +17,8 @@ __all__ = ["normcase","isabs","join","splitdrive","split","splitext",
"basename","dirname","commonprefix","getsize","getmtime",
"getatime","getctime","islink","exists","isdir","isfile","ismount",
"walk","expanduser","expandvars","normpath","abspath",
- "samefile","sameopenfile","samestat","supports_unicode_filenames"]
+ "samefile","sameopenfile","samestat",
+ "realpath","supports_unicode_filenames"]
# 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