[Python-checkins] CVS: python/dist/src/Lib site.py,1.39,1.40
Neal Norwitz
nnorwitz@users.sourceforge.net
Mon, 11 Feb 2002 10:34:43 -0800
Update of /cvsroot/python/python/dist/src/Lib
In directory usw-pr-cvs1:/tmp/cvs-serv15988
Modified Files:
site.py
Log Message:
SF #515020, delete global variables which are used only for temporary
values in for loops (dircase, prefix, sitedir).
Index: site.py
===================================================================
RCS file: /cvsroot/python/python/dist/src/Lib/site.py,v
retrieving revision 1.39
retrieving revision 1.40
diff -C2 -d -r1.39 -r1.40
*** site.py 17 Dec 2001 16:07:06 -0000 1.39
--- site.py 11 Feb 2002 18:34:41 -0000 1.40
***************
*** 89,93 ****
_dirs_in_sys_path[dircase] = 1
sys.path[:] = L
! del dir, L
# Append ./build/lib.<platform> in case we're running in the build dir
--- 89,93 ----
_dirs_in_sys_path[dircase] = 1
sys.path[:] = L
! del dir, dircase, L
# Append ./build/lib.<platform> in case we're running in the build dir
***************
*** 176,179 ****
--- 176,180 ----
if os.path.isdir(sitedir):
addsitedir(sitedir)
+ del prefix, sitedir
_dirs_in_sys_path = None