Skip to content

Commit 24b07bc

Browse files
committed
#11515: fix several typos. Patch by Piotr Kasprzyk.
1 parent 1aa999c commit 24b07bc

Some content is hidden

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

44 files changed

+51
-50
lines changed

Lib/SocketServer.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -675,7 +675,7 @@ class StreamRequestHandler(BaseRequestHandler):
675675
# A timeout to apply to the request socket, if not None.
676676
timeout = None
677677

678-
# Disable nagle algoritm for this socket, if True.
678+
# Disable nagle algorithm for this socket, if True.
679679
# Use only when wbufsize != 0, to avoid small packets.
680680
disable_nagle_algorithm = False
681681

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

59945994
def _format_align(sign, body, spec):
59955995
"""Given an unpadded, non-aligned numeric string 'body' and sign
5996-
string 'sign', add padding and aligment conforming to the given
5996+
string 'sign', add padding and alignment conforming to the given
59975997
format specifier dictionary 'spec' (as produced by
59985998
parse_format_specifier).
59995999

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
@@ -599,7 +599,7 @@ class FTP_TLS(FTP):
599599
Usage example:
600600
>>> from ftplib import FTP_TLS
601601
>>> ftps = FTP_TLS('ftp.python.org')
602-
>>> ftps.login() # login anonimously previously securing control channel
602+
>>> ftps.login() # login anonymously previously securing control channel
603603
'230 Guest login ok, access restrictions apply.'
604604
>>> ftps.prot_p() # switch to secure data connection
605605
'200 Protection level set to P'

Lib/gettext.py

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

Lib/httplib.py

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

Lib/idlelib/EditorWindow.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -102,8 +102,8 @@ def __init__(self, flist=None, filename=None, key=None, root=None):
102102
self.top = top = WindowList.ListedToplevel(root, menu=self.menubar)
103103
if flist:
104104
self.tkinter_vars = flist.vars
105-
#self.top.instance_dict makes flist.inversedict avalable to
106-
#configDialog.py so it can access all EditorWindow instaces
105+
#self.top.instance_dict makes flist.inversedict available to
106+
#configDialog.py so it can access all EditorWindow instances
107107
self.top.instance_dict = flist.inversedict
108108
else:
109109
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/lib-tk/Tix.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -163,7 +163,7 @@ def tix_getimage(self, name):
163163
extensions) exist, then the image type is chosen according to the
164164
depth of the X display: xbm images are chosen on monochrome
165165
displays and color images are chosen on color displays. By using
166-
tix_ getimage, you can advoid hard coding the pathnames of the
166+
tix_ getimage, you can avoid hard coding the pathnames of the
167167
image files in your application. When successful, this command
168168
returns the name of the newly created image, which can be used to
169169
configure the -image option of the Tk and Tix widgets.

0 commit comments

Comments
 (0)