mirror of
https://github.com/python/cpython.git
synced 2025-08-03 16:39:00 +00:00
Don't die if CodeType doesn't exist -- ignore the error. This could
happen in restricted mode.
This commit is contained in:
parent
7999bfb235
commit
2fff84d892
1 changed files with 4 additions and 1 deletions
|
@ -85,7 +85,10 @@ d[types.IntType] = _copy_atomic
|
|||
d[types.LongType] = _copy_atomic
|
||||
d[types.FloatType] = _copy_atomic
|
||||
d[types.StringType] = _copy_atomic
|
||||
d[types.CodeType] = _copy_atomic
|
||||
try:
|
||||
d[types.CodeType] = _copy_atomic
|
||||
except AttributeError:
|
||||
pass
|
||||
d[types.TypeType] = _copy_atomic
|
||||
d[types.XRangeType] = _copy_atomic
|
||||
d[types.ClassType] = _copy_atomic
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue