diff options
author | Christian Clauss <cclauss@me.com> | 2021-10-06 17:55:16 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-10-06 17:55:16 (GMT) |
commit | 682aecfdeba481c876bfc9f3796c635bd5b5df50 (patch) | |
tree | 51102e7170b805a9ae1916483ba04b2e0e7f4fe9 /Tools/peg_generator | |
parent | 0571b934f5f9198c3461a7b631d7073ac0a5676f (diff) | |
download | cpython-682aecfdeba481c876bfc9f3796c635bd5b5df50.zip cpython-682aecfdeba481c876bfc9f3796c635bd5b5df50.tar.gz cpython-682aecfdeba481c876bfc9f3796c635bd5b5df50.tar.bz2 |
Fix typos in the Tools directory (GH-28769)
Like #28744 but for the Tools directory.
[skip issue] Opening a related issue is pending python/psf-infra-meta#130
Automerge-Triggered-By: GH:pablogsal
Diffstat (limited to 'Tools/peg_generator')
-rw-r--r-- | Tools/peg_generator/pegen/c_generator.py | 2 | ||||
-rwxr-xr-x | Tools/peg_generator/pegen/first_sets.py | 2 | ||||
-rwxr-xr-x | Tools/peg_generator/scripts/download_pypi_packages.py | 2 |
3 files changed, 3 insertions, 3 deletions
diff --git a/Tools/peg_generator/pegen/c_generator.py b/Tools/peg_generator/pegen/c_generator.py index d15e910..29c310f 100644 --- a/Tools/peg_generator/pegen/c_generator.py +++ b/Tools/peg_generator/pegen/c_generator.py @@ -737,7 +737,7 @@ class CParserGenerator(ParserGenerator, GrammarVisitor): self.print( f'D(fprintf(stderr, "%*c+ {rulename}[%d-%d]: %s succeeded!\\n", p->level, \' \', _mark, p->mark, "{node_str}"));' ) - # Prepare to emmit the rule action and do so + # Prepare to emit the rule action and do so if node.action and "EXTRA" in node.action: self._set_up_token_end_metadata_extraction() if self.skip_actions: diff --git a/Tools/peg_generator/pegen/first_sets.py b/Tools/peg_generator/pegen/first_sets.py index 611ef51..6d794ff 100755 --- a/Tools/peg_generator/pegen/first_sets.py +++ b/Tools/peg_generator/pegen/first_sets.py @@ -56,7 +56,7 @@ class FirstSetCalculator(GrammarVisitor): result -= to_remove # If the set of new terminals can start with the empty string, - # it means that the item is completelly nullable and we should + # it means that the item is completely nullable and we should # also considering at least the next item in case the current # one fails to parse. diff --git a/Tools/peg_generator/scripts/download_pypi_packages.py b/Tools/peg_generator/scripts/download_pypi_packages.py index 0af876c..180309d 100755 --- a/Tools/peg_generator/scripts/download_pypi_packages.py +++ b/Tools/peg_generator/scripts/download_pypi_packages.py @@ -73,7 +73,7 @@ def main() -> None: package_json = load_json(package_name) try: - print(f"Dowloading and compressing package {package_name} ... ", end="") + print(f"Downloading and compressing package {package_name} ... ", end="") download_package_code(package_name, package_json) print("Done") except (IndexError, KeyError): |