summaryrefslogtreecommitdiff
path: root/src/python/m5/util/grammar.py
diff options
context:
space:
mode:
authorAndreas Sandberg <andreas.sandberg@arm.com>2019-01-25 18:40:19 +0000
committerAndreas Sandberg <andreas.sandberg@arm.com>2019-02-13 09:52:37 +0000
commit23af972756a98410bd41472bd33ea651b5180f07 (patch)
tree3ce657429e12a3bba40a8693dcd1b79be59f62d1 /src/python/m5/util/grammar.py
parentac00ec10ca483a3b96349dd2952a7881c6d8b29a (diff)
downloadgem5-23af972756a98410bd41472bd33ea651b5180f07.tar.xz
python: Replace deprecated repr syntax
Change-Id: I5f9538cf2ca5ee17c51e7c5388d3aef363fcfa54 Signed-off-by: Andreas Sandberg <andreas.sandberg@arm.com> Reviewed-on: https://gem5-review.googlesource.com/c/15989 Reviewed-by: Giacomo Travaglini <giacomo.travaglini@arm.com>
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)