From 34172d5316d099535390777083ccb7849ac76322 Mon Sep 17 00:00:00 2001 From: Neal Norwitz Date: Mon, 11 Feb 2002 18:34:41 +0000 Subject: [PATCH] SF #515020, delete global variables which are used only for temporary values in for loops (dircase, prefix, sitedir). --- Lib/site.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Lib/site.py b/Lib/site.py index 09043a8b4a5..c25f2115214 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. 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