Commit 88b666ca authored by Guido van Rossum's avatar Guido van Rossum

SF patch 518765 (Derek Harland): Bug in copy.py when used through

rexec.

When using a restricted environment, imports of copy will fail with an
AttributeError when trying to access types.CodeType.

Bugfix candidate (all the way back to 1.5.3, but at least 2.1.3 and
2.2.1).
parent e64ef931
......@@ -197,7 +197,10 @@ try:
d[types.UnicodeType] = _deepcopy_atomic
except AttributeError:
pass
d[types.CodeType] = _deepcopy_atomic
try:
d[types.CodeType] = _deepcopy_atomic
except AttributeError:
pass
d[types.TypeType] = _deepcopy_atomic
d[types.XRangeType] = _deepcopy_atomic
......
......@@ -176,6 +176,7 @@ Milton L. Hankins
Stephen Hansen
Barry Hantman
Lynda Hardman
Derek Harland
Jason Harper
Gerhard Hring
Larry Hastings
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment