Get rid of all two uses of backticks (bad Jeremy!).

This commit is contained in:
Brett Cannon 2006-08-24 23:44:42 +00:00
parent f1624cd2d6
commit 0e1cff56b4
2 changed files with 2 additions and 2 deletions

View File

@ -98,7 +98,7 @@ class ASDLScanner(spark.GenericScanner, object):
def t_default(self, s):
r" . +"
raise ValueError, "unmatched input: %s" % `s`
raise ValueError, "unmatched input: %s" % repr(s)
class ASDLParser(spark.GenericParser, object):
def __init__(self):

View File

@ -47,7 +47,7 @@ def reflow_lines(s, depth):
# XXX this should be fixed for real
if i == -1 and 'GeneratorExp' in cur:
i = size + 3
assert i != -1, "Impossible line %d to reflow: %s" % (size, `s`)
assert i != -1, "Impossible line %d to reflow: %s" % (size, repr(s))
lines.append(padding + cur[:i])
if len(lines) == 1:
# find new size based on brace