Commit de4ed1c2 authored by gsamain's avatar gsamain Committed by Xavier Thompson

Fix PyExtTypes pickle injection check on (absent) nogil attribute

parent e7484219
...@@ -1720,7 +1720,6 @@ if VALUE is not None: ...@@ -1720,7 +1720,6 @@ if VALUE is not None:
if stats: if stats:
node.body.stats += stats node.body.stats += stats
if (node.visibility != 'extern' if (node.visibility != 'extern'
and not node.nogil
and not node.scope.lookup('__reduce__') and not node.scope.lookup('__reduce__')
and not node.scope.lookup('__reduce_ex__')): and not node.scope.lookup('__reduce_ex__')):
self._inject_pickle_methods(node) self._inject_pickle_methods(node)
......
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