Author: Ronan Lamy <[email protected]>
Branch:
Changeset: r71536:5d771f55cfa8
Date: 2014-05-15 21:50 +0100
http://bitbucket.org/pypy/pypy/changeset/5d771f55cfa8/
Log: kill unused noreturnvalue()
diff --git a/rpython/annotator/annrpython.py b/rpython/annotator/annrpython.py
--- a/rpython/annotator/annrpython.py
+++ b/rpython/annotator/annrpython.py
@@ -598,16 +598,13 @@
e.source = gather_error(self, graph, block, opindex)
raise
if resultcell is None:
- resultcell = self.noreturnvalue(op)
+ resultcell = annmodel.s_ImpossibleValue
elif resultcell == annmodel.s_ImpossibleValue:
raise BlockedInference(self, op, opindex) # the operation cannot
succeed
assert isinstance(resultcell, annmodel.SomeObject)
assert isinstance(op.result, Variable)
self.setbinding(op.result, resultcell) # bind resultcell to op.result
- def noreturnvalue(self, op):
- return annmodel.s_ImpossibleValue # no return value (hook method)
-
class BlockedInference(Exception):
"""This exception signals the type inference engine that the situation
_______________________________________________
pypy-commit mailing list
[email protected]
https://mail.python.org/mailman/listinfo/pypy-commit