[pypy-commit] pypy default: simplify some code

alex_gaynor noreply at buildbot.pypy.org
Tue Oct 4 04:13:50 CEST 2011


Author: Alex Gaynor <alex.gaynor at gmail.com>
Branch: 
Changeset: r47816:71bb26b2f173
Date: 2011-10-03 22:13 -0400
http://bitbucket.org/pypy/pypy/changeset/71bb26b2f173/

Log:	simplify some code

diff --git a/pypy/rlib/jit.py b/pypy/rlib/jit.py
--- a/pypy/rlib/jit.py
+++ b/pypy/rlib/jit.py
@@ -178,9 +178,7 @@
 
     This is for advanced usage only.
     """
-    if NonConstant(False):
-        return True
-    return False
+    return NonConstant(False)
 
 class Entry(ExtRegistryEntry):
     _about_ = hint


More information about the pypy-commit mailing list