]> granicus.if.org Git - python/commitdiff
Minor namespace clean-up.
authorRaymond Hettinger <python@rcn.com>
Tue, 7 Jun 2005 18:52:34 +0000 (18:52 +0000)
committerRaymond Hettinger <python@rcn.com>
Tue, 7 Jun 2005 18:52:34 +0000 (18:52 +0000)
Lib/decimal.py

index e3e7fd5c11c081b1efd11f748669ce38cb12cf14..4a91c5540231c83445cd8803826ead8e3cc565a1 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