We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent e427a1c commit f036551Copy full SHA for f036551
2 files changed
Parser/asdl.py
@@ -98,7 +98,7 @@ def t_whitespace(self, s):
98
99
def t_default(self, s):
100
r" . +"
101
- raise ValueError, "unmatched input: %s" % repr(s)
+ raise ValueError, "unmatched input: %r" % s
102
103
class ASDLParser(spark.GenericParser, object):
104
def __init__(self):
Parser/asdl_c.py
@@ -47,7 +47,7 @@ def reflow_lines(s, depth):
47
# XXX this should be fixed for real
48
if i == -1 and 'GeneratorExp' in cur:
49
i = size + 3
50
- assert i != -1, "Impossible line %d to reflow: %s" % (size, repr(s))
+ assert i != -1, "Impossible line %d to reflow: %r" % (size, s)
51
lines.append(padding + cur[:i])
52
if len(lines) == 1:
53
# find new size based on brace
0 commit comments