mirror of
https://github.com/python/cpython.git
synced 2025-08-31 14:07:50 +00:00
Added (dummy) expanduser and expandvar methods
This commit is contained in:
parent
dc3e3f69db
commit
f4e7d2a396
1 changed files with 11 additions and 0 deletions
|
@ -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'.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue