Skip to content

Commit 4969f70

Browse files
committed
#11515: Merge with 3.1.
2 parents c48c19a + 42da663 commit 4969f70

Some content is hidden

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

49 files changed

+58
-58
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
@@ -6088,7 +6088,7 @@ def _parse_format_specifier(format_spec, _localeconv=None):
60886088

60896089
def _format_align(sign, body, spec):
60906090
"""Given an unpadded, non-aligned numeric string 'body' and sign
6091-
string 'sign', add padding and aligment conforming to the given
6091+
string 'sign', add padding and alignment conforming to the given
60926092
format specifier dictionary 'spec' (as produced by
60936093
parse_format_specifier).
60946094

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/ftplib.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -613,7 +613,7 @@ class FTP_TLS(FTP):
613613
Usage example:
614614
>>> from ftplib import FTP_TLS
615615
>>> ftps = FTP_TLS('ftp.python.org')
616-
>>> ftps.login() # login anonimously previously securing control channel
616+
>>> ftps.login() # login anonymously previously securing control channel
617617
'230 Guest login ok, access restrictions apply.'
618618
>>> ftps.prot_p() # switch to secure data connection
619619
'200 Protection level set to P'

Lib/gettext.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -282,7 +282,7 @@ def _parse(self, fp):
282282
# Note: we unconditionally convert both msgids and msgstrs to
283283
# Unicode using the character encoding specified in the charset
284284
# parameter of the Content-Type header. The gettext documentation
285-
# strongly encourages msgids to be us-ascii, but some appliations
285+
# strongly encourages msgids to be us-ascii, but some applications
286286
# require alternative encodings (e.g. Zope's ZCML and ZPT). For
287287
# traditional gettext applications, the msgid conversion will
288288
# 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
@@ -798,7 +798,7 @@ def _send_output(self, message_body=None):
798798
del self._buffer[:]
799799
# If msg and message_body are sent in a single send() call,
800800
# it will avoid performance problems caused by the interaction
801-
# between delayed ack and the Nagle algorithim.
801+
# between delayed ack and the Nagle algorithm.
802802
if isinstance(message_body, bytes):
803803
msg += message_body
804804
message_body = None

Lib/idlelib/EditorWindow.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -104,8 +104,8 @@ def __init__(self, flist=None, filename=None, key=None, root=None):
104104
self.top = top = WindowList.ListedToplevel(root, menu=self.menubar)
105105
if flist:
106106
self.tkinter_vars = flist.vars
107-
#self.top.instance_dict makes flist.inversedict avalable to
108-
#configDialog.py so it can access all EditorWindow instaces
107+
#self.top.instance_dict makes flist.inversedict available to
108+
#configDialog.py so it can access all EditorWindow instances
109109
self.top.instance_dict = flist.inversedict
110110
else:
111111
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: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -152,7 +152,7 @@ def _check_name(method):
152152
loader can handle.
153153
154154
The first argument (self) must define _name which the second argument is
155-
comapred against. If the comparison fails then ImportError is raised.
155+
compared against. If the comparison fails then ImportError is raised.
156156
157157
"""
158158
def inner(self, name, *args, **kwargs):
@@ -304,7 +304,7 @@ def is_package(self, fullname):
304304

305305
def _bytes_from_bytecode(self, fullname, data, source_mtime):
306306
"""Return the marshalled bytes from bytecode, verifying the magic
307-
number and timestamp alon the way.
307+
number and timestamp along the way.
308308
309309
If source_mtime is None then skip the timestamp check.
310310

Lib/nntplib.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -315,7 +315,7 @@ def __init__(self, file, host,
315315
316316
readermode is sometimes necessary if you are connecting to an
317317
NNTP server on the local machine and intend to call
318-
reader-specific comamnds, such as `group'. If you get
318+
reader-specific commands, such as `group'. If you get
319319
unexpected NNTPPermanentErrors, you might need to set
320320
readermode.
321321
"""
@@ -1001,7 +1001,7 @@ def __init__(self, host, port=NNTP_PORT, user=None, password=None,
10011001
10021002
readermode is sometimes necessary if you are connecting to an
10031003
NNTP server on the local machine and intend to call
1004-
reader-specific comamnds, such as `group'. If you get
1004+
reader-specific commands, such as `group'. If you get
10051005
unexpected NNTPPermanentErrors, you might need to set
10061006
readermode.
10071007
"""

0 commit comments

Comments
 (0)