Author: Michael Hudson-Doyle <[email protected]>
Branch: 
Changeset: r211:4e2d1eb469f0
Date: 2013-05-03 09:58 +1200
http://bitbucket.org/pypy/benchmarks/changeset/4e2d1eb469f0/

Log:    Be more tolerant of whitespace when parsing the --benchmarks command
        line option.

diff --git a/runner.py b/runner.py
--- a/runner.py
+++ b/runner.py
@@ -258,7 +258,7 @@
     options, args = parser.parse_args(argv)
 
     upload_options = get_upload_options(options)
-    benchmarks = options.benchmarks.split(',')
+    benchmarks = [benchmark.strip() for benchmark in 
options.benchmarks.split(',')]
     for benchmark in benchmarks:
         if benchmark not in BENCHMARK_SET:
             raise WrongBenchmark(benchmark)
_______________________________________________
pypy-commit mailing list
[email protected]
http://mail.python.org/mailman/listinfo/pypy-commit

Reply via email to