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>
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)
return str(dict(self.items()))
def __repr__(self):
- return `dict(self.items())`
+ return repr(dict(list(self.items())))
def __contains__(self, key):
return key in self.local or key in self.parent
test2.setdefault('b', 'blah')
print(test1)
print(test2)
- print(`test2`)
+ print(repr(test2))
print(len(test2))
d['y'] = 26
display(d)
- print(`d`)
+ print(repr(d))
print(d.copy())