summaryrefslogtreecommitdiffstats
path: root/Lib/macpath.py
diff options
context:
space:
mode:
authorJack Jansen <jack.jansen@cwi.nl>1995-12-15 13:23:37 (GMT)
committerJack Jansen <jack.jansen@cwi.nl>1995-12-15 13:23:37 (GMT)
commitf4e7d2a396f820dd276bfa2d8cb1391a86d1aab8 (patch)
tree36a847b6024dca2b7fe02bf1d873831fa68c9016 /Lib/macpath.py
parentdc3e3f69db6a6aa5aed1d604d53c0b4cf156add8 (diff)
downloadcpython-f4e7d2a396f820dd276bfa2d8cb1391a86d1aab8.zip
cpython-f4e7d2a396f820dd276bfa2d8cb1391a86d1aab8.tar.gz
cpython-f4e7d2a396f820dd276bfa2d8cb1391a86d1aab8.tar.bz2
Added (dummy) expanduser and expandvar methods
Diffstat (limited to 'Lib/macpath.py')
-rw-r--r--Lib/macpath.py11
1 files changed, 11 insertions, 0 deletions
diff --git a/Lib/macpath.py b/Lib/macpath.py
index 5317c36..71748c9 100644
--- a/Lib/macpath.py
+++ b/Lib/macpath.py
@@ -98,6 +98,17 @@ def exists(s):
return 0
return 1
+#
+# dummy expandvars to retain interface-compatability with other
+# operating systems.
+def expandvars(path):
+ return path
+
+#
+# dummy expanduser to retain interface-compatability with other
+# operating systems.
+def expanduser(path):
+ return path
# Normalize a pathname: get rid of '::' sequences by backing up,
# e.g., 'foo:bar::bletch' becomes 'foo:bletch'.