SF #515020, delete global variables which are used only for temporary

values in for loops (dircase, prefix, sitedir).
This commit is contained in:
Neal Norwitz 2002-02-11 18:34:41 +00:00
parent 83bd70a7fa
commit 34172d5316
1 changed files with 2 additions and 1 deletions

View File

@ -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