Commit 2dae64d6 authored by gsamain's avatar gsamain Committed by Xavier Thompson

Fix PyExtTypes pickle injection check on (absent) nogil attribute

parent f4ec0a33
......@@ -1719,7 +1719,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