summaryrefslogtreecommitdiff
path: root/pkmnasm/asmlex.py
diff options
context:
space:
mode:
authoryenatch <yenatch@gmail.com>2017-02-13 18:09:31 -0500
committerGitHub <noreply@github.com>2017-02-13 18:09:31 -0500
commit979c98a7c0f67ad6b9685b2d532c66a1f76ffb22 (patch)
treec67cc7b8500aac4e400d4e8bfdbef57a57b63eb1 /pkmnasm/asmlex.py
parent74c620d01ad59bfb09cf4111ace549b925fcb9ab (diff)
parent766dea11bd63dee939db2b47198410e6c6e0fc7e (diff)
Merge pull request #103 from eevee/py3
Python 3 compatibility, sort of, maybe
Diffstat (limited to 'pkmnasm/asmlex.py')
-rw-r--r--pkmnasm/asmlex.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/pkmnasm/asmlex.py b/pkmnasm/asmlex.py
index 9f61ab3..112c2bf 100644
--- a/pkmnasm/asmlex.py
+++ b/pkmnasm/asmlex.py
@@ -1,5 +1,6 @@
# -*- coding: utf-8 -*-
+from __future__ import print_function
import ply.lex as lex
import sys, os
@@ -466,7 +467,7 @@ class Lexer(object):
''' Prints an error msg.
'''
#print '%s:%i %s' % (FILENAME, self.lex.lineno, str)
- print '%s:%s %s' % (FILENAME, "?", str)
+ print('%s:%s %s' % (FILENAME, "?", str))
def error(self, str):
@@ -490,5 +491,5 @@ if __name__ == '__main__':
tmp.input(open(sys.argv[1]).read())
tok = tmp.token()
while tok:
- print tok
+ print(tok)
tok = tmp.token()