Skip to content

Commit 479d792

Browse files
Merge pull request #1595 from practicalswift/py3k-compatible-except
[Python] Use Py3k compatible "except" format
2 parents f4e1e45 + 6641eba commit 479d792

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

utils/submit-benchmark-results

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ def capture_with_result(args, include_stderr=False):
3232
stderr = subprocess.STDOUT
3333
try:
3434
p = subprocess.Popen(args, stdout=subprocess.PIPE, stderr=stderr)
35-
except OSError, e:
35+
except OSError as e:
3636
if e.errno == errno.ENOENT:
3737
sys.exit('no such file or directory: %r when running %s.' % (
3838
args[0], ' '.join(args)))

0 commit comments

Comments
 (0)