Commit 1059f4a5 authored by Rémi Cardona's avatar Rémi Cardona
Browse files

[py3k] except as

Related to #268148.
parent 1d35627fe4c7
......@@ -268,7 +268,7 @@ def register_base_transforms(engine, verb=True):
for trclass in cmdtransforms.transform_classes:
except MissingBinary, ex:
except MissingBinary as ex:
if verb:
print ex
return True
......@@ -63,7 +63,7 @@ class Parser:
self.out.write('<pre class="python">\n')
tokenize.tokenize(text.readline, self)
except tokenize.TokenError, ex:
except tokenize.TokenError as ex:
msg = ex[0]
line = ex[1][0]
self.out.write("<h5 class='error>'ERROR: %s%s</h5>" % (
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment