[Python-checkins] python/dist/src/Lib os.py,1.55,1.56

loewis@sourceforge.net loewis@sourceforge.net
Thu, 02 May 2002 10:39:32 -0700


Update of /cvsroot/python/python/dist/src/Lib
In directory usw-pr-cvs1:/tmp/cvs-serv32525

Modified Files:
	os.py 
Log Message:
Patch 550804: Make os.environ.copy() return a copy.


Index: os.py
===================================================================
RCS file: /cvsroot/python/python/dist/src/Lib/os.py,v
retrieving revision 1.55
retrieving revision 1.56
diff -C2 -d -r1.55 -r1.56
*** os.py	4 Apr 2002 22:55:58 -0000	1.55
--- os.py	2 May 2002 17:39:19 -0000	1.56
***************
*** 413,416 ****
--- 413,418 ----
                  for k, v in dict.items():
                      self[k] = v
+             def copy(self):
+                 return dict(self)
  
      else:  # Where Env Var Names Can Be Mixed Case
***************
*** 433,436 ****
--- 435,440 ----
                      unsetenv(key)
                      del self.data[key]
+             def copy(self):
+                 return dict(self)