SF #515020, delete global variables which are used only for temporary
values in for loops (dircase, prefix, sitedir).
This commit is contained in:
parent
83bd70a7fa
commit
34172d5316
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in New Issue