Commits

Maciej Fijalkowski committed 4bb4107

simplify

Comments (0)

Files changed (1)

pypy/rlib/objectmodel.py

     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):