[Python-checkins] python/dist/src/Lib decimal.py, 1.31.2.3, 1.31.2.4

rhettinger@users.sourceforge.net rhettinger at users.sourceforge.net
Sun Jun 12 20:23:03 CEST 2005


Update of /cvsroot/python/python/dist/src/Lib
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv22827

Modified Files:
      Tag: release24-maint
	decimal.py 
Log Message:
Backport 1.37 namespace cleanup.

Index: decimal.py
===================================================================
RCS file: /cvsroot/python/python/dist/src/Lib/decimal.py,v
retrieving revision 1.31.2.3
retrieving revision 1.31.2.4
diff -u -d -r1.31.2.3 -r1.31.2.4
--- decimal.py	27 Mar 2005 10:55:26 -0000	1.31.2.3
+++ decimal.py	12 Jun 2005 18:23:01 -0000	1.31.2.4
@@ -134,7 +134,7 @@
     'setcontext', 'getcontext'
 ]
 
-import copy
+import copy as _copy
 
 #Rounding
 ROUND_DOWN = 'ROUND_DOWN'
@@ -2210,7 +2210,7 @@
             del s
         for name, val in locals().items():
             if val is None:
-                setattr(self, name, copy.copy(getattr(DefaultContext, name)))
+                setattr(self, name, _copy.copy(getattr(DefaultContext, name)))
             else:
                 setattr(self, name, val)
         del self.self



More information about the Python-checkins mailing list