Skip to content

Commit f056416

Browse files
committed
Fix typos in comments, documentation and test method names
1 parent 129fe04 commit f056416

File tree

10 files changed

+12
-12
lines changed

10 files changed

+12
-12
lines changed

Doc/howto/logging-cookbook.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2231,7 +2231,7 @@ flushing behavior.
22312231

22322232
The example script has a simple function, ``foo``, which just cycles through
22332233
all the logging levels, writing to ``sys.stderr`` to say what level it's about
2234-
to log at, and then actually logging a message that that level. You can pass a
2234+
to log at, and then actually logging a message at that level. You can pass a
22352235
parameter to ``foo`` which, if true, will log at ERROR and CRITICAL levels -
22362236
otherwise, it only logs at DEBUG, INFO and WARNING levels.
22372237

Doc/reference/simple_stmts.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -237,7 +237,7 @@ Assignment of an object to a single target is recursively defined as follows.
237237
phase, causing less detailed error messages.
238238

239239
Although the definition of assignment implies that overlaps between the
240-
left-hand side and the right-hand side are 'simultanenous' (for example ``a, b =
240+
left-hand side and the right-hand side are 'simultaneous' (for example ``a, b =
241241
b, a`` swaps two variables), overlaps *within* the collection of assigned-to
242242
variables occur left-to-right, sometimes resulting in confusion. For instance,
243243
the following program prints ``[0, 2]``::

Lib/http/cookiejar.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1841,7 +1841,7 @@ def lwp_cookie_str(cookie):
18411841
class LWPCookieJar(FileCookieJar):
18421842
"""
18431843
The LWPCookieJar saves a sequence of "Set-Cookie3" lines.
1844-
"Set-Cookie3" is the format used by the libwww-perl libary, not known
1844+
"Set-Cookie3" is the format used by the libwww-perl library, not known
18451845
to be compatible with any browser, but which is easy to read and
18461846
doesn't lose information about RFC 2965 cookies.
18471847

Lib/idlelib/ChangeLog

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1574,7 +1574,7 @@ Mon Oct 12 23:59:27 1998 Guido van Rossum <guido@cnri.reston.va.us>
15741574
* Attic/PopupMenu.py: Pass a root to the help window.
15751575

15761576
* SearchBinding.py:
1577-
Add parent argument to 'to to line number' dialog box.
1577+
Add parent argument to 'go to line number' dialog box.
15781578

15791579
Sat Oct 10 19:15:32 1998 Guido van Rossum <guido@cnri.reston.va.us>
15801580

Lib/test/test_descr.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3489,7 +3489,7 @@ class Node:
34893489
b.a = a
34903490
z = deepcopy(a) # This blew up before
34913491

3492-
def test_unintialized_modules(self):
3492+
def test_uninitialized_modules(self):
34933493
# Testing uninitialized module objects...
34943494
from types import ModuleType as M
34953495
m = M.__new__(M)

Lib/test/test_module.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ def test_uninitialized(self):
3030
pass
3131
self.assertEqual(foo.__doc__, ModuleType.__doc__)
3232

33-
def test_unintialized_missing_getattr(self):
33+
def test_uninitialized_missing_getattr(self):
3434
# Issue 8297
3535
# test the text in the AttributeError of an uninitialized module
3636
foo = ModuleType.__new__(ModuleType)

Lib/tkinter/__init__.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1249,7 +1249,7 @@ def getint_event(s):
12491249
nsign, b, f, h, k, s, t, w, x, y, A, E, K, N, W, T, X, Y, D = args
12501250
# Missing: (a, c, d, m, o, v, B, R)
12511251
e = Event()
1252-
# serial field: valid vor all events
1252+
# serial field: valid for all events
12531253
# number of button: ButtonPress and ButtonRelease events only
12541254
# height field: Configure, ConfigureRequest, Create,
12551255
# ResizeRequest, and Expose events only
@@ -1261,7 +1261,7 @@ def getint_event(s):
12611261
# y field: "valid for events that contain a y field"
12621262
# keysym as decimal: KeyPress and KeyRelease events only
12631263
# x_root, y_root fields: ButtonPress, ButtonRelease, KeyPress,
1264-
# KeyRelease,and Motion events
1264+
# KeyRelease, and Motion events
12651265
e.serial = getint(nsign)
12661266
e.num = getint_event(b)
12671267
try: e.focus = getboolean(f)

Lib/urllib/robotparser.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -132,7 +132,7 @@ def can_fetch(self, useragent, url):
132132
return True
133133
# Until the robots.txt file has been read or found not
134134
# to exist, we must assume that no url is allowable.
135-
# This prevents false positives when a user erronenously
135+
# This prevents false positives when a user erroneously
136136
# calls can_fetch() before calling read().
137137
if not self.last_checked:
138138
return False

Mac/BuildScript/scripts/postflight.patch-profile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ case "${BSH}" in
5858
fi
5959
echo "" >> "${RC}"
6060
echo "# Setting PATH for Python ${PYVER}" >> "${RC}"
61-
echo "# The orginal version is saved in .cshrc.pysave" >> "${RC}"
61+
echo "# The original version is saved in .cshrc.pysave" >> "${RC}"
6262
echo "set path=(${PYTHON_ROOT}/bin "'$path'")" >> "${RC}"
6363
if [ `id -ur` = 0 ]; then
6464
chown "${USER}" "${RC}"
@@ -90,7 +90,7 @@ if [ -f "${PR}" ]; then
9090
fi
9191
echo "" >> "${PR}"
9292
echo "# Setting PATH for Python ${PYVER}" >> "${PR}"
93-
echo "# The orginal version is saved in `basename ${PR}`.pysave" >> "${PR}"
93+
echo "# The original version is saved in `basename ${PR}`.pysave" >> "${PR}"
9494
echo 'PATH="'"${PYTHON_ROOT}/bin"':${PATH}"' >> "${PR}"
9595
echo 'export PATH' >> "${PR}"
9696
if [ `id -ur` = 0 ]; then

Misc/NEWS

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2674,7 +2674,7 @@ Library
26742674
is run with pythonw.exe.
26752675

26762676
- Issue #21775: shutil.copytree(): fix crash when copying to VFAT. An exception
2677-
handler assumed that that OSError objects always have a 'winerror' attribute.
2677+
handler assumed that OSError objects always have a 'winerror' attribute.
26782678
That is not the case, so the exception handler itself raised AttributeError
26792679
when run on Linux (and, presumably, any other non-Windows OS).
26802680
Patch by Greg Ward.

0 commit comments

Comments
 (0)