[pypy-commit] pypy faster-isinstance: simplify
fijal
noreply at buildbot.pypy.org
Thu Sep 29 00:40:34 CEST 2011
Author: Maciej Fijalkowski <fijall at gmail.com>
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):
More information about the pypy-commit
mailing list