diff options
author | Ronan Lamy <ronan.lamy@gmail.com> | 2016-11-20 22:11:47 +0000 |
---|---|---|
committer | Ronan Lamy <ronan.lamy@gmail.com> | 2016-11-20 22:11:47 +0000 |
commit | decb7ddaf1ac7ec880fa1be6b80379e289963109 (patch) | |
tree | e1ea0f646a08999c2bd0ec63ec8036d8cbef4efc /rpython/annotator | |
parent | Kill confusing function callback case in emulate_pbc_call() (diff) | |
download | pypy-decb7ddaf1ac7ec880fa1be6b80379e289963109.tar.gz pypy-decb7ddaf1ac7ec880fa1be6b80379e289963109.tar.bz2 pypy-decb7ddaf1ac7ec880fa1be6b80379e289963109.zip |
small cleanup
Diffstat (limited to 'rpython/annotator')
-rw-r--r-- | rpython/annotator/annrpython.py | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/rpython/annotator/annrpython.py b/rpython/annotator/annrpython.py index aab5d9db1d..27bd525427 100644 --- a/rpython/annotator/annrpython.py +++ b/rpython/annotator/annrpython.py @@ -309,15 +309,14 @@ class RPythonAnnotator(object): #___ 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 |