summaryrefslogtreecommitdiffstats
path: root/Parser/asdl_c.py
diff options
context:
space:
mode:
authorBrett Cannon <bcannon@gmail.com>2006-08-25 04:06:31 (GMT)
committerBrett Cannon <bcannon@gmail.com>2006-08-25 04:06:31 (GMT)
commitf0365511a526e7dbf33613186eaeff6dea38bbd1 (patch)
treef4761bc503d2ce500e19e6cbd454072d8cac3f93 /Parser/asdl_c.py
parente427a1ca3abab7193abcef22788a390b557197f4 (diff)
downloadcpython-f0365511a526e7dbf33613186eaeff6dea38bbd1.zip
cpython-f0365511a526e7dbf33613186eaeff6dea38bbd1.tar.gz
cpython-f0365511a526e7dbf33613186eaeff6dea38bbd1.tar.bz2
Switch to using %r in the format string.
Diffstat (limited to 'Parser/asdl_c.py')
-rwxr-xr-xParser/asdl_c.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/Parser/asdl_c.py b/Parser/asdl_c.py
index 46f46d8..d7d2a3f 100755
--- a/Parser/asdl_c.py
+++ b/Parser/asdl_c.py
@@ -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