summaryrefslogtreecommitdiffstats
path: root/Lib/site.py
diff options
context:
space:
mode:
Diffstat (limited to 'Lib/site.py')
-rw-r--r--Lib/site.py3
1 files changed, 1 insertions, 2 deletions
diff --git a/Lib/site.py b/Lib/site.py
index f8c000a..682bbd5 100644
--- a/Lib/site.py
+++ b/Lib/site.py
@@ -148,8 +148,7 @@ def addpackage(sitedir, name):
if dir.startswith("import"):
exec dir
continue
- if dir[-1] == '\n':
- dir = dir[:-1]
+ dir = dir.rstrip()
dir, dircase = makepath(sitedir, dir)
if not dircase in _dirs_in_sys_path and os.path.exists(dir):
sys.path.append(dir)