summaryrefslogtreecommitdiffstats
path: root/Lib/site.py
diff options
context:
space:
mode:
authorNeal Norwitz <nnorwitz@gmail.com>2002-02-11 18:34:41 (GMT)
committerNeal Norwitz <nnorwitz@gmail.com>2002-02-11 18:34:41 (GMT)
commit34172d5316d099535390777083ccb7849ac76322 (patch)
treee6cb37b1c287f018310fd9cf0983805f1ca0ec49 /Lib/site.py
parent83bd70a7fac1c03557e00a3f3891e998979bda29 (diff)
downloadcpython-34172d5316d099535390777083ccb7849ac76322.zip
cpython-34172d5316d099535390777083ccb7849ac76322.tar.gz
cpython-34172d5316d099535390777083ccb7849ac76322.tar.bz2
SF #515020, delete global variables which are used only for temporary
values in for loops (dircase, prefix, sitedir).
Diffstat (limited to 'Lib/site.py')
-rw-r--r--Lib/site.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/Lib/site.py b/Lib/site.py
index 09043a8..c25f211 100644
--- a/Lib/site.py
+++ b/Lib/site.py
@@ -88,7 +88,7 @@ for dir in sys.path:
L.append(dir)
_dirs_in_sys_path[dircase] = 1
sys.path[:] = L
-del dir, L
+del dir, dircase, L
# Append ./build/lib.<platform> in case we're running in the build dir
# (especially for Guido :-)
@@ -175,6 +175,7 @@ for prefix in prefixes:
for sitedir in sitedirs:
if os.path.isdir(sitedir):
addsitedir(sitedir)
+del prefix, sitedir
_dirs_in_sys_path = None