[Python-checkins] [3.9] Fix typos in the Tools directory (GH-28769) (GH-28800)
JulienPalard
webhook-mailer at python.org
Thu Oct 7 11:31:29 EDT 2021
https://github.com/python/cpython/commit/da56601783312a74a5cd6ee8ea0881d534e0fc19
commit: da56601783312a74a5cd6ee8ea0881d534e0fc19
branch: 3.9
author: Christian Clauss <cclauss at me.com>
committer: JulienPalard <julien at palard.fr>
date: 2021-10-07T17:31:24+02:00
summary:
[3.9] Fix typos in the Tools directory (GH-28769) (GH-28800)
Like #28744 but for the Tools directory.
Automerge-Triggered-By: GH:pablogsal
(cherry picked from commit 682aecfdeba481c876bfc9f3796c635bd5b5df50)
files:
M Tools/peg_generator/pegen/c_generator.py
M Tools/peg_generator/pegen/first_sets.py
M Tools/peg_generator/scripts/download_pypi_packages.py
M Tools/pynche/ColorDB.py
M Tools/scripts/dutree.doc
diff --git a/Tools/peg_generator/pegen/c_generator.py b/Tools/peg_generator/pegen/c_generator.py
index b4d6a0bab51f4..692ee69031ba5 100644
--- a/Tools/peg_generator/pegen/c_generator.py
+++ b/Tools/peg_generator/pegen/c_generator.py
@@ -685,7 +685,7 @@ def handle_alt_normal(self, node: Alt, is_gather: bool, rulename: Optional[str])
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 71be5a2e7cbf4..ce80bb5d5c446 100755
--- a/Tools/peg_generator/pegen/first_sets.py
+++ b/Tools/peg_generator/pegen/first_sets.py
@@ -59,7 +59,7 @@ def visit_Alt(self, item: Alt) -> Set[str]:
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 9874202d379ee..ca1216087a1fd 100755
--- a/Tools/peg_generator/scripts/download_pypi_packages.py
+++ b/Tools/peg_generator/scripts/download_pypi_packages.py
@@ -72,7 +72,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):
diff --git a/Tools/pynche/ColorDB.py b/Tools/pynche/ColorDB.py
index eb76d4042d33b..c013a60896908 100644
--- a/Tools/pynche/ColorDB.py
+++ b/Tools/pynche/ColorDB.py
@@ -9,7 +9,7 @@
trouble reading the file, None is returned. You can pass get_colordb() an
optional filetype argument.
-Supporte file types are:
+Supported file types are:
X_RGB_TXT -- X Consortium rgb.txt format files. Three columns of numbers
from 0 .. 255 separated by whitespace. Arbitrary trailing
diff --git a/Tools/scripts/dutree.doc b/Tools/scripts/dutree.doc
index 97bd2e2e47cae..490126b0182d1 100644
--- a/Tools/scripts/dutree.doc
+++ b/Tools/scripts/dutree.doc
@@ -15,7 +15,7 @@ From the keyboard of flee at cs.psu.edu (Felix Lee):
:And Perl is definitely awkward with data types. I haven't yet found a
:pleasant way of shoving non-trivial data types into Perl's grammar.
-Yes, it's pretty aweful at that, alright. Sometimes I write perl programs
+Yes, it's pretty awful at that, alright. Sometimes I write perl programs
that need them, and sometimes it just takes a little creativity. But
sometimes it's not worth it. I actually wrote a C program the other day
(gasp) because I didn't want to deal with a game matrix with six links per node.
More information about the Python-checkins
mailing list