Author: Ronan Lamy <[email protected]>
Branch: 
Changeset: r93051:08eace48ed36
Date: 2016-11-20 22:11 +0000
http://bitbucket.org/pypy/pypy/changeset/08eace48ed36/

Log:    small cleanup

diff --git a/rpython/annotator/annrpython.py b/rpython/annotator/annrpython.py
--- a/rpython/annotator/annrpython.py
+++ b/rpython/annotator/annrpython.py
@@ -309,15 +309,14 @@
     #___ interface for annotator.bookkeeper _______
 
     def recursivecall(self, graph, whence, inputcells):
-        if isinstance(whence, tuple):
+        if whence is not None:
             parent_graph, parent_block, parent_index = whence
             tag = parent_block, parent_index
             self.translator.update_call_graph(parent_graph, graph, tag)
-        # self.notify[graph.returnblock] is a set of call
-        # points to this func which triggers a reflow whenever the
-        # return block of this graph has been analysed.
-        returnpositions = self.notify.setdefault(graph.returnblock, set())
-        if whence is not None:
+            # self.notify[graph.returnblock] is a set of call
+            # points to this func which triggers a reflow whenever the
+            # return block of this graph has been analysed.
+            returnpositions = self.notify.setdefault(graph.returnblock, set())
             returnpositions.add(whence)
 
         # generalize the function's input arguments
_______________________________________________
pypy-commit mailing list
[email protected]
https://mail.python.org/mailman/listinfo/pypy-commit

Reply via email to