[Python-3000-checkins] r51578 - python/branches/p3yk/Parser/asdl.py python/branches/p3yk/Parser/asdl_c.py
Neal Norwitz
nnorwitz at gmail.com
Fri Aug 25 02:12:06 CEST 2006
Would it be better to do '... %r ...' % value, instead of doing repr(value)?
n
--
On 8/24/06, brett.cannon <python-3000-checkins at python.org> wrote:
> Author: brett.cannon
> Date: Fri Aug 25 01:44:42 2006
> New Revision: 51578
>
> Modified:
> python/branches/p3yk/Parser/asdl.py
> python/branches/p3yk/Parser/asdl_c.py
> Log:
> Get rid of all two uses of backticks (bad Jeremy!).
>
>
> Modified: python/branches/p3yk/Parser/asdl.py
> ==============================================================================
> --- python/branches/p3yk/Parser/asdl.py (original)
> +++ python/branches/p3yk/Parser/asdl.py Fri Aug 25 01:44:42 2006
> @@ -98,7 +98,7 @@
>
> 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):
>
> Modified: python/branches/p3yk/Parser/asdl_c.py
> ==============================================================================
> --- python/branches/p3yk/Parser/asdl_c.py (original)
> +++ python/branches/p3yk/Parser/asdl_c.py Fri Aug 25 01:44:42 2006
> @@ -47,7 +47,7 @@
> # 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
> _______________________________________________
> Python-3000-checkins mailing list
> Python-3000-checkins at python.org
> http://mail.python.org/mailman/listinfo/python-3000-checkins
>
More information about the Python-3000-checkins
mailing list