Fix typos in comments and test code (#122846)

This commit is contained in:
Xie Yanbo 2024-08-12 12:16:41 +08:00 committed by GitHub
parent 9375b9ca3a
commit 253c6a0b2f
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
18 changed files with 28 additions and 28 deletions

View file

@ -91,7 +91,7 @@ def build_menu(
# D E F B E
# G C F
#
# "fill" the table with empty words, so we always have the same amout
# "fill" the table with empty words, so we always have the same amount
# of rows for each column
missing = cols*rows - len(wordlist)
wordlist = wordlist + ['']*missing

View file

@ -109,7 +109,7 @@ delayprog = re.compile(b"\\$<([0-9]+)((?:/|\\*){0,2})>")
try:
poll: type[select.poll] = select.poll
except AttributeError:
# this is exactly the minumum necessary to support what we
# this is exactly the minimum necessary to support what we
# do with poll objects
class MinimalPoll:
def __init__(self):
@ -613,7 +613,7 @@ class UnixConsole(Console):
# reuse the oldline as much as possible, but stop as soon as we
# encounter an ESCAPE, because it might be the start of an escape
# sequene
# sequence
while (
x_coord < minlen
and oldline[x_pos] == newline[x_pos]

View file

@ -231,7 +231,7 @@ class WindowsConsole(Console):
# reuse the oldline as much as possible, but stop as soon as we
# encounter an ESCAPE, because it might be the start of an escape
# sequene
# sequence
while (
x_coord < minlen
and oldline[x_pos] == newline[x_pos]