summaryrefslogtreecommitdiff
path: root/Lib/test/test_grammar.py
diff options
context:
space:
mode:
authorWalter Dörwald <walter@livinglogic.de>2004-02-12 17:35:32 +0000
committerWalter Dörwald <walter@livinglogic.de>2004-02-12 17:35:32 +0000
commit582176023213a5bdaf76a19977f7bb6d508694e9 (patch)
treea5f480092a35a71571f1d24bcd10255e1b93e904 /Lib/test/test_grammar.py
parentcdef0ac4f0dc828ee205ffa2999592f5fa6f70d3 (diff)
downloadcpython-582176023213a5bdaf76a19977f7bb6d508694e9.tar.gz
Replace backticks with repr() or "%r"
From SF patch #852334.
Diffstat (limited to 'Lib/test/test_grammar.py')
-rw-r--r--Lib/test/test_grammar.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/Lib/test/test_grammar.py b/Lib/test/test_grammar.py
index 6666c13bc8..0eed4bbc7b 100644
--- a/Lib/test/test_grammar.py
+++ b/Lib/test/test_grammar.py
@@ -47,7 +47,7 @@ if maxint == 2147483647:
try:
x = eval(s)
except OverflowError:
- print "OverflowError on huge integer literal " + `s`
+ print "OverflowError on huge integer literal " + repr(s)
elif eval('maxint == 9223372036854775807'):
if eval('-9223372036854775807-1 != -01000000000000000000000'):
raise TestFailed, 'max negative int'
@@ -58,7 +58,7 @@ elif eval('maxint == 9223372036854775807'):
try:
x = eval(s)
except OverflowError:
- print "OverflowError on huge integer literal " + `s`
+ print "OverflowError on huge integer literal " + repr(s)
else:
print 'Weird maxint value', maxint