Author: Maciej Fijalkowski <[email protected]>
Branch: faster-isinstance
Changeset: r47665:f197622961de
Date: 2011-09-28 19:40 -0300
http://bitbucket.org/pypy/pypy/changeset/f197622961de/
Log: simplify
diff --git a/pypy/rlib/objectmodel.py b/pypy/rlib/objectmodel.py
--- a/pypy/rlib/objectmodel.py
+++ b/pypy/rlib/objectmodel.py
@@ -185,10 +185,7 @@
def compute_result_annotation(self, s_arg):
from pypy.annotation import model
r = model.SomeBool()
- if s_arg.is_constant():
- r.const = True
- else:
- r.const = False
+ r.const = s_arg.is_constant()
return r
def specialize_call(self, hop):
_______________________________________________
pypy-commit mailing list
[email protected]
http://mail.python.org/mailman/listinfo/pypy-commit