Commit 5fcc6703 authored by gsamain's avatar gsamain

Fix PyExtTypes pickle injection check on (absent) nogil attribute

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