summaryrefslogtreecommitdiffstats
path: root/Demo/comparisons/regextest.py
diff options
context:
space:
mode:
Diffstat (limited to 'Demo/comparisons/regextest.py')
-rwxr-xr-xDemo/comparisons/regextest.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/Demo/comparisons/regextest.py b/Demo/comparisons/regextest.py
index b27d741..1fab052 100755
--- a/Demo/comparisons/regextest.py
+++ b/Demo/comparisons/regextest.py
@@ -28,7 +28,7 @@ def main():
for file in sys.argv[1:]:
try:
fp = open(file, 'r')
- except IOError, msg:
+ except IOError as msg:
print "%s: %s" % (file, msg)
continue
lineno = 0