summaryrefslogtreecommitdiff
path: root/src/python/m5/util/grammar.py
diff options
context:
space:
mode:
Diffstat (limited to 'src/python/m5/util/grammar.py')
-rw-r--r--src/python/m5/util/grammar.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/python/m5/util/grammar.py b/src/python/m5/util/grammar.py
index fcd8df2c9..2d9e82cd6 100644
--- a/src/python/m5/util/grammar.py
+++ b/src/python/m5/util/grammar.py
@@ -134,5 +134,5 @@ class Grammar(object):
def t_error(self, t):
msg = "Illegal character %s @ %d:%d" % \
- (`t.value[0]`, t.lineno, t.lexpos)
+ (repr(t.value[0]), t.lineno, t.lexpos)
raise ParseError(msg, t)