Skip to content

Commit 42da663

Browse files
committed
#11515: fix several typos. Patch by Piotr Kasprzyk.
1 parent f6db0bb commit 42da663

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

41 files changed

+1771
-1770
lines changed

Lib/ctypes/test/test_functions.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -116,7 +116,7 @@ def test_intresult(self):
116116
self.assertEqual(result, 21)
117117
self.assertEqual(type(result), int)
118118

119-
# You cannot assing character format codes as restype any longer
119+
# You cannot assign character format codes as restype any longer
120120
self.assertRaises(TypeError, setattr, f, "restype", "i")
121121

122122
def test_floatresult(self):

Lib/decimal.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5710,7 +5710,7 @@ def _parse_format_specifier(format_spec, _localeconv=None):
57105710

57115711
def _format_align(sign, body, spec):
57125712
"""Given an unpadded, non-aligned numeric string 'body' and sign
5713-
string 'sign', add padding and aligment conforming to the given
5713+
string 'sign', add padding and alignment conforming to the given
57145714
format specifier dictionary 'spec' (as produced by
57155715
parse_format_specifier).
57165716

Lib/email/mime/application.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ def __init__(self, _data, _subtype='octet-stream',
1717
_encoder=encoders.encode_base64, **_params):
1818
"""Create an application/* type MIME document.
1919
20-
_data is a string containing the raw applicatoin data.
20+
_data is a string containing the raw application data.
2121
2222
_subtype is the MIME content type subtype, defaulting to
2323
'octet-stream'.

Lib/gettext.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -298,7 +298,7 @@ def _parse(self, fp):
298298
# Note: we unconditionally convert both msgids and msgstrs to
299299
# Unicode using the character encoding specified in the charset
300300
# parameter of the Content-Type header. The gettext documentation
301-
# strongly encourages msgids to be us-ascii, but some appliations
301+
# strongly encourages msgids to be us-ascii, but some applications
302302
# require alternative encodings (e.g. Zope's ZCML and ZPT). For
303303
# traditional gettext applications, the msgid conversion will
304304
# cause no problems since us-ascii should always be a subset of

Lib/http/client.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -799,7 +799,7 @@ def _send_output(self, message_body=None):
799799
del self._buffer[:]
800800
# If msg and message_body are sent in a single send() call,
801801
# it will avoid performance problems caused by the interaction
802-
# between delayed ack and the Nagle algorithim.
802+
# between delayed ack and the Nagle algorithm.
803803
if isinstance(message_body, bytes):
804804
msg += message_body
805805
message_body = None

Lib/idlelib/EditorWindow.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -105,8 +105,8 @@ def __init__(self, flist=None, filename=None, key=None, root=None):
105105
self.top = top = WindowList.ListedToplevel(root, menu=self.menubar)
106106
if flist:
107107
self.tkinter_vars = flist.vars
108-
#self.top.instance_dict makes flist.inversedict avalable to
109-
#configDialog.py so it can access all EditorWindow instaces
108+
#self.top.instance_dict makes flist.inversedict available to
109+
#configDialog.py so it can access all EditorWindow instances
110110
self.top.instance_dict = flist.inversedict
111111
else:
112112
self.tkinter_vars = {} # keys: Tkinter event names

Lib/idlelib/HISTORY.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ What's New in IDLEfork 0.8.1?
1313
- New tarball released as a result of the 'revitalisation' of the IDLEfork
1414
project.
1515

16-
- This release requires python 2.1 or better. Compatability with earlier
16+
- This release requires python 2.1 or better. Compatibility with earlier
1717
versions of python (especially ancient ones like 1.5x) is no longer a
1818
priority in IDLEfork development.
1919

Lib/importlib/_bootstrap.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -162,7 +162,7 @@ def _check_name(method):
162162
loader can handle.
163163
164164
The first argument (self) must define _name which the second argument is
165-
comapred against. If the comparison fails then ImportError is raised.
165+
compared against. If the comparison fails then ImportError is raised.
166166
167167
"""
168168
def inner(self, name, *args, **kwargs):

Lib/nntplib.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,7 @@ def __init__(self, host, port=NNTP_PORT, user=None, password=None,
103103
104104
readermode is sometimes necessary if you are connecting to an
105105
NNTP server on the local machine and intend to call
106-
reader-specific comamnds, such as `group'. If you get
106+
reader-specific commands, such as `group'. If you get
107107
unexpected NNTPPermanentErrors, you might need to set
108108
readermode.
109109
"""

Lib/test/crashers/recursion_limit_too_high.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
# file handles.
66

77
# The point of this example is to show that sys.setrecursionlimit() is a
8-
# hack, and not a robust solution. This example simply exercices a path
8+
# hack, and not a robust solution. This example simply exercises a path
99
# where it takes many C-level recursions, consuming a lot of stack
1010
# space, for each Python-level recursion. So 1000 times this amount of
1111
# stack space may be too much for standard platforms already.

0 commit comments

Comments
 (0)