aboutsummaryrefslogtreecommitdiff
path: root/aerialvision/lexyaccbookmark.py
diff options
context:
space:
mode:
authorJRPan <[email protected]>2023-06-08 22:41:25 +0800
committerGitHub <[email protected]>2023-06-08 22:41:25 +0800
commit812e809f8f3e1e0a4e1a1b13b427be4cffd35a13 (patch)
tree0e2b8ab5ef65a08cb8b9711b0ae51b0063232053 /aerialvision/lexyaccbookmark.py
parent8d2671ae6545a7bb01d94be7f2204673f42402f8 (diff)
parentaa99b50e477d6100543c93ee904eabd696be7c93 (diff)
Merge pull request #48 from christindbose/aerielvision_stuff
Ported aerialvision to use python3 instead of python2
Diffstat (limited to 'aerialvision/lexyaccbookmark.py')
-rw-r--r--aerialvision/lexyaccbookmark.py9
1 files changed, 5 insertions, 4 deletions
diff --git a/aerialvision/lexyaccbookmark.py b/aerialvision/lexyaccbookmark.py
index 42c6b40..7aa2f80 100644
--- a/aerialvision/lexyaccbookmark.py
+++ b/aerialvision/lexyaccbookmark.py
@@ -108,7 +108,7 @@ def parseMe():
def t_error(t):
- print "Illegal character '%s'" % t.value[0]
+ print("Illegal character '%s'" % t.value[0])
t.lexer.skip(1)
lex.lex()
@@ -150,7 +150,7 @@ def parseMe():
pass
else:
- print 'An Parsing Error has occurred'
+ print('An Parsing Error has occurred')
@@ -159,7 +159,7 @@ def parseMe():
def p_error(p):
if p:
- print("Syntax error at '%s'" % p.value)
+ print(("Syntax error at '%s'" % p.value))
else:
print("Syntax error at EOF")
@@ -168,7 +168,7 @@ def parseMe():
try:
file = open(os.environ['HOME'] + '/.gpgpu_sim/aerialvision/bookmarks.txt', 'r')
inputData = file.readlines()
- except IOError,e:
+ except IOError as e:
if e.errno == 2:
inputData = ''
else:
@@ -178,3 +178,4 @@ def parseMe():
yacc.parse(x[0:-1]) # ,debug=True)
return listBookmarks
+