]> granicus.if.org Git - python/commitdiff
Added (dummy) expanduser and expandvar methods
authorJack Jansen <jack.jansen@cwi.nl>
Fri, 15 Dec 1995 13:23:37 +0000 (13:23 +0000)
committerJack Jansen <jack.jansen@cwi.nl>
Fri, 15 Dec 1995 13:23:37 +0000 (13:23 +0000)
Lib/macpath.py

index 5317c36b3fc3987a608c507d15aae0d3aab26f48..71748c931549c8bb6d16208e0fb27ea79ebf8557 100644 (file)
@@ -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'.