[Python-checkins] cpython (2.7): Fix incomplete format error in asdl.py

martin.panter python-checkins at python.org
Sat Sep 24 01:38:59 EDT 2016


https://hg.python.org/cpython/rev/f50689f5b775
changeset:   104043:f50689f5b775
branch:      2.7
parent:      104039:4a1e1715efc3
user:        Martin Panter <vadmium+py at gmail.com>
date:        Sat Sep 24 05:35:15 2016 +0000
summary:
  Fix incomplete format error in asdl.py

files:
  Parser/asdl.py   |  2 +-
  Parser/asdl_c.py |  2 +-
  2 files changed, 2 insertions(+), 2 deletions(-)


diff --git a/Parser/asdl.py b/Parser/asdl.py
--- a/Parser/asdl.py
+++ b/Parser/asdl.py
@@ -126,7 +126,7 @@
         "version ::= Id String"
         if version.value != "version":
             raise ASDLSyntaxError(version.lineno,
-                                msg="expected 'version', found %" % version)
+                                msg="expected 'version', found %s" % version)
         return V
 
     def p_definition_0(self, (definition,)):
diff --git a/Parser/asdl_c.py b/Parser/asdl_c.py
--- a/Parser/asdl_c.py
+++ b/Parser/asdl_c.py
@@ -1,4 +1,4 @@
-#! /usr/bin/env python
+#! /usr/bin/env python2
 """Generate C code from an ASDL description."""
 
 # TO DO

-- 
Repository URL: https://hg.python.org/cpython


More information about the Python-checkins mailing list