We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent b5cfd55 commit d6399d2Copy full SHA for d6399d2
1 file changed
Lib/copy.py
@@ -51,6 +51,7 @@ class instances).
51
import types
52
import weakref
53
from copyreg import dispatch_table
54
+import builtins
55
56
class Error(Exception):
57
pass
@@ -109,7 +110,7 @@ def _copy_immutable(x):
109
110
if t is not None:
111
d[t] = _copy_immutable
112
for name in ("complex", "unicode"):
- t = globals()['__builtins__'].get(name)
113
+ t = getattr(builtins, name, None)
114
115
116
0 commit comments