From aef1b58dc8889e1bebaddf1e30f67b63a1b20f90 Mon Sep 17 00:00:00 2001 From: Akira Nonaka Date: Wed, 9 Jun 2021 23:38:53 +0900 Subject: bpo-44345: Fix 'generated by' comment in parser.c (GH-26615) --- Parser/parser.c | 2 +- Tools/peg_generator/pegen/c_generator.py | 2 +- 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")) -- cgit v0.12