From: Jack Jansen Date: Fri, 15 Dec 1995 13:23:37 +0000 (+0000) Subject: Added (dummy) expanduser and expandvar methods X-Git-Tag: v1.4b1~443 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=f4e7d2a396f820dd276bfa2d8cb1391a86d1aab8;p=thirdparty%2FPython%2Fcpython.git Added (dummy) expanduser and expandvar methods --- diff --git a/Lib/macpath.py b/Lib/macpath.py index 5317c36b3fc3..71748c931549 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'.