Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit f4e7d2a

Browse files
committed
Added (dummy) expanduser and expandvar methods
1 parent dc3e3f6 commit f4e7d2a

1 file changed

Lines changed: 11 additions & 0 deletions

File tree

Lib/macpath.py

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -98,6 +98,17 @@ def exists(s):
9898
return 0
9999
return 1
100100

101+
#
102+
# dummy expandvars to retain interface-compatability with other
103+
# operating systems.
104+
def expandvars(path):
105+
return path
106+
107+
#
108+
# dummy expanduser to retain interface-compatability with other
109+
# operating systems.
110+
def expanduser(path):
111+
return path
101112

102113
# Normalize a pathname: get rid of '::' sequences by backing up,
103114
# e.g., 'foo:bar::bletch' becomes 'foo:bletch'.

0 commit comments

Comments
 (0)