mirror of https://github.com/python/cpython
Minor namespace clean-up.
This commit is contained in:
parent
8f6f08c5d4
commit
eb2608415e
|
@ -134,7 +134,7 @@ __all__ = [
|
||||||
'setcontext', 'getcontext'
|
'setcontext', 'getcontext'
|
||||||
]
|
]
|
||||||
|
|
||||||
import copy
|
import copy as _copy
|
||||||
|
|
||||||
#Rounding
|
#Rounding
|
||||||
ROUND_DOWN = 'ROUND_DOWN'
|
ROUND_DOWN = 'ROUND_DOWN'
|
||||||
|
@ -2210,7 +2210,7 @@ class Context(object):
|
||||||
del s
|
del s
|
||||||
for name, val in locals().items():
|
for name, val in locals().items():
|
||||||
if val is None:
|
if val is None:
|
||||||
setattr(self, name, copy.copy(getattr(DefaultContext, name)))
|
setattr(self, name, _copy.copy(getattr(DefaultContext, name)))
|
||||||
else:
|
else:
|
||||||
setattr(self, name, val)
|
setattr(self, name, val)
|
||||||
del self.self
|
del self.self
|
||||||
|
|
Loading…
Reference in New Issue