summaryrefslogtreecommitdiffstats
path: root/Lib/_pyrepl
diff options
context:
space:
mode:
authorXie Yanbo <xieyanbo@gmail.com>2024-08-12 04:16:41 (GMT)
committerGitHub <noreply@github.com>2024-08-12 04:16:41 (GMT)
commit253c6a0b2f88b3327b7113860b99d665346fe43c (patch)
treeb7607792341c71e620151c1c9e4ad8ec6a7dbda5 /Lib/_pyrepl
parent9375b9ca3a4998678ba74ff5c77ed540a4dcf887 (diff)
downloadcpython-253c6a0b2f88b3327b7113860b99d665346fe43c.zip
cpython-253c6a0b2f88b3327b7113860b99d665346fe43c.tar.gz
cpython-253c6a0b2f88b3327b7113860b99d665346fe43c.tar.bz2
Fix typos in comments and test code (#122846)
Diffstat (limited to 'Lib/_pyrepl')
-rw-r--r--Lib/_pyrepl/completing_reader.py2
-rw-r--r--Lib/_pyrepl/unix_console.py4
-rw-r--r--Lib/_pyrepl/windows_console.py2
3 files changed, 4 insertions, 4 deletions
diff --git a/Lib/_pyrepl/completing_reader.py b/Lib/_pyrepl/completing_reader.py
index 05770aa..e856bb9 100644
--- a/Lib/_pyrepl/completing_reader.py
+++ b/Lib/_pyrepl/completing_reader.py
@@ -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
diff --git a/Lib/_pyrepl/unix_console.py b/Lib/_pyrepl/unix_console.py
index 18b2bba..7b8f5a0 100644
--- a/Lib/_pyrepl/unix_console.py
+++ b/Lib/_pyrepl/unix_console.py
@@ -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]
diff --git a/Lib/_pyrepl/windows_console.py b/Lib/_pyrepl/windows_console.py
index ba9af36..6c3f703 100644
--- a/Lib/_pyrepl/windows_console.py
+++ b/Lib/_pyrepl/windows_console.py
@@ -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]