Author: Armin Rigo <ar...@tunes.org>
Branch: 
Changeset: r84684:da7ae5002ecc
Date: 2016-05-25 14:51 +0200
http://bitbucket.org/pypy/pypy/changeset/da7ae5002ecc/

Log:    "Publish" this hack officially as a method (could be used where we
        check .operations == () manually)

diff --git a/rpython/flowspace/model.py b/rpython/flowspace/model.py
--- a/rpython/flowspace/model.py
+++ b/rpython/flowspace/model.py
@@ -172,6 +172,9 @@
                                           #  Constant(last_exception), see 
below
         self.exits = []                   # list of Link(s)
 
+    def is_final_block(self):
+        return self.operations == ()      # return or except block
+
     def at(self):
         if self.operations and self.operations[0].offset >= 0:
             return "@%d" % self.operations[0].offset
_______________________________________________
pypy-commit mailing list
pypy-commit@python.org
https://mail.python.org/mailman/listinfo/pypy-commit

Reply via email to