[pypy-svn] r27152 - pypy/dist/pypy/translator/goal

arigo at codespeak.net arigo at codespeak.net
Fri May 12 20:12:28 CEST 2006

Author: arigo
Date: Fri May 12 20:12:27 2006
New Revision: 27152

A '[default]' trying to be too clever, and showing on the --stackless
option.  Changed the condition to the obvious but possibly naive one.
The current translate.py at least doesn't show another case where
'[default]' should appear but no longer does because of this change.

Modified: pypy/dist/pypy/translator/goal/translate.py
--- pypy/dist/pypy/translator/goal/translate.py	(original)
+++ pypy/dist/pypy/translator/goal/translate.py	Fri May 12 20:12:27 2006
@@ -135,7 +135,7 @@
             if val is None:
             elif isinstance(val, bool):
-                if bool(val) == (option.action=="store_true"):
+                if val is True and option.action=="store_true":
                     defl = "[default]"
                 defl = "[default: %s]" % val

More information about the Pypy-commit mailing list