diff options
author | Charles Harris <charlesr.harris@gmail.com> | 2013-02-27 14:24:35 -0700 |
---|---|---|
committer | Charles Harris <charlesr.harris@gmail.com> | 2013-02-27 14:31:12 -0700 |
commit | c6397ba59fba25989b0ba37ad8267325757f1dcd (patch) | |
tree | 1501c04214cbf846badc7988de6ff5f2094c9940 /benchmarks/benchmark.py | |
parent | 208072f817ac14f041569f0123d3434bc9e0daba (diff) | |
download | numpy-c6397ba59fba25989b0ba37ad8267325757f1dcd.tar.gz |
2to3: Updata `except Exception, msg:` syntax in files not in numpy/ .
This should finish the updating of the exception syntax.
Diffstat (limited to 'benchmarks/benchmark.py')
-rw-r--r-- | benchmarks/benchmark.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/benchmarks/benchmark.py b/benchmarks/benchmark.py index 526a69d58..047379451 100644 --- a/benchmarks/benchmark.py +++ b/benchmarks/benchmark.py @@ -35,7 +35,7 @@ class Benchmark(dict): try: print "%s: %s" % (modname, \ self.module_test[mod].repeat(self.runs,self.reps)) - except Exception, e: + except Exception as e: print "%s: Failed to benchmark (%s)." % (modname,e) print '-'*79 |