mirror of
https://github.com/python/cpython.git
synced 2025-10-03 21:55:41 +00:00
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).
This commit is contained in:
parent
e64ef931d6
commit
88b666ca3f
2 changed files with 5 additions and 1 deletions
|
@ -197,7 +197,10 @@ try:
|
||||||
d[types.UnicodeType] = _deepcopy_atomic
|
d[types.UnicodeType] = _deepcopy_atomic
|
||||||
except AttributeError:
|
except AttributeError:
|
||||||
pass
|
pass
|
||||||
d[types.CodeType] = _deepcopy_atomic
|
try:
|
||||||
|
d[types.CodeType] = _deepcopy_atomic
|
||||||
|
except AttributeError:
|
||||||
|
pass
|
||||||
d[types.TypeType] = _deepcopy_atomic
|
d[types.TypeType] = _deepcopy_atomic
|
||||||
d[types.XRangeType] = _deepcopy_atomic
|
d[types.XRangeType] = _deepcopy_atomic
|
||||||
|
|
||||||
|
|
|
@ -176,6 +176,7 @@ Milton L. Hankins
|
||||||
Stephen Hansen
|
Stephen Hansen
|
||||||
Barry Hantman
|
Barry Hantman
|
||||||
Lynda Hardman
|
Lynda Hardman
|
||||||
|
Derek Harland
|
||||||
Jason Harper
|
Jason Harper
|
||||||
Gerhard Häring
|
Gerhard Häring
|
||||||
Larry Hastings
|
Larry Hastings
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue