Skip to content

Commit 9b8c8e4

Browse files
author
rkern
committed
BUG: Remove 2.6ism.
git-svn-id: https://svn.enthought.com/svn/sandbox/grin/trunk@81 b5260ef8-a2c4-4e91-82fd-f242746c304a
1 parent c416d97 commit 9b8c8e4

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

grin.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1029,7 +1029,7 @@ def grin_main(argv=None):
10291029
sys.stdout.write(report)
10301030
except KeyboardInterrupt:
10311031
raise SystemExit(0)
1032-
except IOError as e:
1032+
except IOError, e:
10331033
if 'Broken pipe' in str(e):
10341034
# The user is probably piping to a pager like less(1) and has exited
10351035
# it. Just exit.
@@ -1070,7 +1070,7 @@ def grind_main(argv=None):
10701070
output(filename)
10711071
except KeyboardInterrupt:
10721072
raise SystemExit(0)
1073-
except IOError as e:
1073+
except IOError, e:
10741074
if 'Broken pipe' in str(e):
10751075
# The user is probably piping to a pager like less(1) and has exited
10761076
# it. Just exit.

0 commit comments

Comments
 (0)