[pypy-commit] pypy pythonoptimize-env: cleanup (cfbolz)

mattip noreply at buildbot.pypy.org
Fri May 15 04:20:18 CEST 2015


Author: mattip <matti.picus at gmail.com>
Branch: pythonoptimize-env
Changeset: r77322:5fc2109440f9
Date: 2015-05-15 05:15 +0300
http://bitbucket.org/pypy/pypy/changeset/5fc2109440f9/

Log:	cleanup (cfbolz)

diff --git a/pypy/interpreter/app_main.py b/pypy/interpreter/app_main.py
--- a/pypy/interpreter/app_main.py
+++ b/pypy/interpreter/app_main.py
@@ -420,10 +420,12 @@
     if v:
         options[key] = max(1, options[key])
         try:
-            newval = max(1, int(v))
+            newval = int(v)
+        except ValueError:
+            pass
+        else:
+            newval = max(1, newval)
             options[key] = max(options[key], newval)
-        except:
-            pass
 
 def parse_command_line(argv):
     import os


More information about the pypy-commit mailing list