Alex Gaynor committed e4e34dd

Fix for translation, not everything has a func (why? I don't know). With this patch it actually seems to fix my deadlock. I get some other weird error though. Somehow that seems better.

Comments (0)

Files changed (1)


 class CanReleaseGILAnalyzer(BoolGraphAnalyzer):
     def analyze_direct_call(self, graph, seen=None):
         releases_gil = False
-        if hasattr(graph.func, "_ptr"):
+        if hasattr(graph, "func") and hasattr(graph.func, "_ptr"):
             releases_gil = graph.func._ptr._obj.releases_gil
         return releases_gil or super(CanReleaseGILAnalyzer, self).analyze_direct_call(graph, seen)