]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
[3.9] Fix typos in the Tools directory (GH-28769) (GH-28800)
authorChristian Clauss <cclauss@me.com>
Thu, 7 Oct 2021 15:31:24 +0000 (17:31 +0200)
committerGitHub <noreply@github.com>
Thu, 7 Oct 2021 15:31:24 +0000 (17:31 +0200)
Like #28744 but for the Tools directory.

Automerge-Triggered-By: GH:pablogsal
(cherry picked from commit 682aecfdeba481c876bfc9f3796c635bd5b5df50)

Tools/peg_generator/pegen/c_generator.py
Tools/peg_generator/pegen/first_sets.py
Tools/peg_generator/scripts/download_pypi_packages.py
Tools/pynche/ColorDB.py
Tools/scripts/dutree.doc

index b4d6a0bab51f4a941c2d35cbcb5f830793bc34d6..692ee69031ba59d5f0f073410b0bd27adecaba4c 100644 (file)
@@ -685,7 +685,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:
index 71be5a2e7cbf4c0501b6d2c7e3820e165768ccf1..ce80bb5d5c44612539297f759d87a6838f035cbe 100755 (executable)
@@ -59,7 +59,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.
 
index 9874202d379eef0ec9b9deeb9d3671ccddaabac2..ca1216087a1fdf236e61dbe364e4285020afeb0a 100755 (executable)
@@ -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):
index eb76d4042d33b6c7e0e83eabebf3363fd7e12d4d..c013a60896908963c279f3a36e1e94d7b42fcacf 100644 (file)
@@ -9,7 +9,7 @@ format of the file is.  If it can't figure out the file format, or it has
 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
index 97bd2e2e47cae9403b810cf4fd6f3e7025d55186..490126b0182d1c0476c2b2f0c4120e56a839f589 100644 (file)
@@ -15,7 +15,7 @@ From the keyboard of flee@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.