diff options
Diffstat (limited to 'test/lex_module_import.py')
-rw-r--r-- | test/lex_module_import.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/test/lex_module_import.py b/test/lex_module_import.py index 81eacdb..df42082 100644 --- a/test/lex_module_import.py +++ b/test/lex_module_import.py @@ -26,7 +26,7 @@ def t_NUMBER(t): try: t.value = int(t.value) except ValueError: - print "Integer value too large", t.value + print("Integer value too large %s" % t.value) t.value = 0 return t @@ -37,6 +37,6 @@ def t_newline(t): t.lineno += t.value.count("\n") def t_error(t): - print "Illegal character '%s'" % t.value[0] + print("Illegal character '%s'" % t.value[0]) t.lexer.skip(1) |