Author: mattip <[email protected]>
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
_______________________________________________
pypy-commit mailing list
[email protected]
https://mail.python.org/mailman/listinfo/pypy-commit