From: Raymond Hettinger Date: Sun, 12 Jun 2005 18:23:01 +0000 (+0000) Subject: Backport 1.37 namespace cleanup. X-Git-Tag: v2.4.2c1~191 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=018c3474317fc6106afb6266be00b361e6d2f474;p=thirdparty%2FPython%2Fcpython.git Backport 1.37 namespace cleanup. --- diff --git a/Lib/decimal.py b/Lib/decimal.py index 18f1c902787e..1d8ed405b079 100644 --- a/Lib/decimal.py +++ b/Lib/decimal.py @@ -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