summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAkira Nonaka <nonaka@mac.com>2021-06-09 14:38:53 (GMT)
committerGitHub <noreply@github.com>2021-06-09 14:38:53 (GMT)
commitaef1b58dc8889e1bebaddf1e30f67b63a1b20f90 (patch)
treef895a29a5c01494350488f4eebfa9c9c9d852c44
parent5571cabf1b3385087aba2c7c10289bba77494e08 (diff)
downloadcpython-aef1b58dc8889e1bebaddf1e30f67b63a1b20f90.zip
cpython-aef1b58dc8889e1bebaddf1e30f67b63a1b20f90.tar.gz
cpython-aef1b58dc8889e1bebaddf1e30f67b63a1b20f90.tar.bz2
bpo-44345: Fix 'generated by' comment in parser.c (GH-26615)
-rw-r--r--Parser/parser.c2
-rw-r--r--Tools/peg_generator/pegen/c_generator.py2
2 files changed, 2 insertions, 2 deletions
diff --git a/Parser/parser.c b/Parser/parser.c
index 8121884..d49bba1 100644
--- a/Parser/parser.c
+++ b/Parser/parser.c
@@ -1,4 +1,4 @@
-// @generated by pegen.py from ./Grammar/python.gram
+// @generated by pegen from ./Grammar/python.gram
#include "pegen.h"
#if defined(Py_DEBUG) && defined(Py_BUILD_CORE)
diff --git a/Tools/peg_generator/pegen/c_generator.py b/Tools/peg_generator/pegen/c_generator.py
index c1ab5e0..7a2edbb 100644
--- a/Tools/peg_generator/pegen/c_generator.py
+++ b/Tools/peg_generator/pegen/c_generator.py
@@ -405,7 +405,7 @@ class CParserGenerator(ParserGenerator, GrammarVisitor):
def generate(self, filename: str) -> None:
self.collect_todo()
- self.print(f"// @generated by pegen.py from {filename}")
+ self.print(f"// @generated by pegen from {filename}")
header = self.grammar.metas.get("header", EXTENSION_PREFIX)
if header:
self.print(header.rstrip("\n"))