Skip to content

[3.9] Fix typos in the Tools directory (GH-28769) #28800

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Oct 7, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion Tools/peg_generator/pegen/c_generator.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
2 changes: 1 addition & 1 deletion Tools/peg_generator/pegen/first_sets.py
Original file line number Diff line number Diff line change
Expand Up @@ -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.

Expand Down
2 changes: 1 addition & 1 deletion Tools/peg_generator/scripts/download_pypi_packages.py
Original file line number Diff line number Diff line change
Expand Up @@ -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):
Expand Down
2 changes: 1 addition & 1 deletion Tools/pynche/ColorDB.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion Tools/scripts/dutree.doc
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ From the keyboard of [email protected] (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.
Expand Down