summaryrefslogtreecommitdiffstats
path: root/Lib/posixpath.py
diff options
context:
space:
mode:
Diffstat (limited to 'Lib/posixpath.py')
-rw-r--r--Lib/posixpath.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/Lib/posixpath.py b/Lib/posixpath.py
index c288f3b..d284834 100644
--- a/Lib/posixpath.py
+++ b/Lib/posixpath.py
@@ -241,6 +241,7 @@ def expanduser(path):
except KeyError:
return path
userhome = pwent[5]
+ if userhome[-1:] == '/': i = i+1
return userhome + path[i:]