diff options
author | Brett Cannon <bcannon@gmail.com> | 2006-08-24 23:44:42 (GMT) |
---|---|---|
committer | Brett Cannon <bcannon@gmail.com> | 2006-08-24 23:44:42 (GMT) |
commit | 0e1cff56b48657109f3867e0b94055c3d907c82c (patch) | |
tree | 997db8f553fa0636d3f94a172035396cd88a87ac /Parser | |
parent | f1624cd2d640949de2af6e6cd6ab75c1d95fe3a3 (diff) | |
download | cpython-0e1cff56b48657109f3867e0b94055c3d907c82c.zip cpython-0e1cff56b48657109f3867e0b94055c3d907c82c.tar.gz cpython-0e1cff56b48657109f3867e0b94055c3d907c82c.tar.bz2 |
Get rid of all two uses of backticks (bad Jeremy!).
Diffstat (limited to 'Parser')
-rw-r--r-- | Parser/asdl.py | 2 | ||||
-rwxr-xr-x | Parser/asdl_c.py | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/Parser/asdl.py b/Parser/asdl.py index bd892b6..e8f9b1c 100644 --- a/Parser/asdl.py +++ b/Parser/asdl.py @@ -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): diff --git a/Parser/asdl_c.py b/Parser/asdl_c.py index b6d9830..46f46d8 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, `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 |