From: Martin Panter Date: Sat, 24 Sep 2016 05:35:15 +0000 (+0000) Subject: Fix incomplete format error in asdl.py X-Git-Tag: v2.7.13rc1~114 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=5d4dd9acb6b93a6efe540e17347bfcb9c1225bf0;p=thirdparty%2FPython%2Fcpython.git Fix incomplete format error in asdl.py --- diff --git a/Parser/asdl.py b/Parser/asdl.py index 7f5856b18a1d..1ddc3f8fb43d 100644 --- a/Parser/asdl.py +++ b/Parser/asdl.py @@ -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,)): diff --git a/Parser/asdl_c.py b/Parser/asdl_c.py index 3d46220300e3..44c3a6d3ac4f 100755 --- 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