Use python3-compatible syntax in parser_main
authorJulien Cristau <julien.cristau@logilab.fr>
Mon, 04 Jan 2016 15:57:55 +0100
changeset 792 59ad3ca13b78
parent 791 829796293f62
child 793 b8465dbebf6f
Use python3-compatible syntax in parser_main
rql/parser_main.py
--- a/rql/parser_main.py	Mon Jan 04 14:31:16 2016 +0100
+++ b/rql/parser_main.py	Mon Jan 04 15:57:55 2016 +0100
@@ -35,7 +35,7 @@
         print('-'*80)
         print(repr(tree))
         print(e_types)
-    except SyntaxError, ex:
+    except SyntaxError as ex:
         # try to get error message from yapps
         from yapps.runtime import print_error
         print_error(ex, parser._scanner)