summaryrefslogtreecommitdiffstats
path: root/Lib/dos-8x3/posixpat.py
diff options
context:
space:
mode:
authorGuido van Rossum <guido@python.org>1998-10-02 01:23:47 (GMT)
committerGuido van Rossum <guido@python.org>1998-10-02 01:23:47 (GMT)
commit64e736ba4e8c7d706f705e1e34a24f8e24d285d6 (patch)
treea097506524d3530d65427918ce01171bb5ac2e8d /Lib/dos-8x3/posixpat.py
parentfdb8fb8b312bb9814bca5c153c8246fed2156c81 (diff)
downloadcpython-64e736ba4e8c7d706f705e1e34a24f8e24d285d6.zip
cpython-64e736ba4e8c7d706f705e1e34a24f8e24d285d6.tar.gz
cpython-64e736ba4e8c7d706f705e1e34a24f8e24d285d6.tar.bz2
Some new blood and some updated versions.
Diffstat (limited to 'Lib/dos-8x3/posixpat.py')
-rwxr-xr-xLib/dos-8x3/posixpat.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/Lib/dos-8x3/posixpat.py b/Lib/dos-8x3/posixpat.py
index a5c0de2..fb3b6a6 100755
--- a/Lib/dos-8x3/posixpat.py
+++ b/Lib/dos-8x3/posixpat.py
@@ -354,6 +354,8 @@ def normpath(path):
while i < len(comps):
if comps[i] == '.':
del comps[i]
+ while i < len(comps) and comps[i] == '':
+ del comps[i]
elif comps[i] == '..' and i > 0 and comps[i-1] not in ('', '..'):
del comps[i-1:i+1]
i = i-1