]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
Backport 1.37 namespace cleanup.
authorRaymond Hettinger <python@rcn.com>
Sun, 12 Jun 2005 18:23:01 +0000 (18:23 +0000)
committerRaymond Hettinger <python@rcn.com>
Sun, 12 Jun 2005 18:23:01 +0000 (18:23 +0000)
Lib/decimal.py

index 18f1c902787e60a70718d615ec3b15e001d6ff11..1d8ed405b07974e5da85c0dd7412965ed34a2bde 100644 (file)
@@ -134,7 +134,7 @@ __all__ = [
     'setcontext', 'getcontext'
 ]
 
-import copy
+import copy as _copy
 
 #Rounding
 ROUND_DOWN = 'ROUND_DOWN'
@@ -2210,7 +2210,7 @@ class Context(object):
             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