Switch to using %r in the format string.

This commit is contained in:
Brett Cannon 2006-08-25 04:06:31 +00:00
parent e427a1ca3a
commit f0365511a5
2 changed files with 2 additions and 2 deletions

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, repr(s))
assert i != -1, "Impossible line %d to reflow: %r" % (size, s)
lines.append(padding + cur[:i])
if len(lines) == 1:
# find new size based on brace