diff options
author | Tim Peters <tim.peters@gmail.com> | 2001-02-09 20:06:00 (GMT) |
---|---|---|
committer | Tim Peters <tim.peters@gmail.com> | 2001-02-09 20:06:00 (GMT) |
commit | 658cba6706eb4a2ad8b3e235cf0db9fe1c8e9e6b (patch) | |
tree | 059882637147ef0acaf1a61141d076d2b05d5166 /Lib/posixpath.py | |
parent | 3c61c3525f4cf23acae95c5229abd10fe0998d28 (diff) | |
download | cpython-658cba6706eb4a2ad8b3e235cf0db9fe1c8e9e6b.zip cpython-658cba6706eb4a2ad8b3e235cf0db9fe1c8e9e6b.tar.gz cpython-658cba6706eb4a2ad8b3e235cf0db9fe1c8e9e6b.tar.bz2 |
Whitespace normalization.
Diffstat (limited to 'Lib/posixpath.py')
-rw-r--r-- | Lib/posixpath.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/posixpath.py b/Lib/posixpath.py index 31b3315..2d18f5d 100644 --- a/Lib/posixpath.py +++ b/Lib/posixpath.py @@ -346,7 +346,7 @@ def normpath(path): initial_slashes = path.startswith('/') # POSIX allows one or two initial slashes, but treats three or more # as single slash. - if (initial_slashes and + if (initial_slashes and path.startswith('//') and not path.startswith('///')): initial_slashes = 2 comps = path.split('/') |