]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
Fix incomplete format error in asdl.py
authorMartin Panter <vadmium+py@gmail.com>
Sat, 24 Sep 2016 05:35:15 +0000 (05:35 +0000)
committerMartin Panter <vadmium+py@gmail.com>
Sat, 24 Sep 2016 05:35:15 +0000 (05:35 +0000)
Parser/asdl.py
Parser/asdl_c.py

index 7f5856b18a1d85dc4666f06edb966c9a4188a7ec..1ddc3f8fb43d671284297dbfed4a22b712710c26 100644 (file)
@@ -126,7 +126,7 @@ class ASDLParser(spark.GenericParser, object):
         "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,)):
index 3d46220300e303f95d58380bd0960495fa3be148..44c3a6d3ac4f097d1a18e982fe1af43bc2c97afe 100755 (executable)
@@ -1,4 +1,4 @@
-#! /usr/bin/env python
+#! /usr/bin/env python2
 """Generate C code from an ASDL description."""
 
 # TO DO