Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 32acc16

Browse files
committed
Merge typo and grammar fixes from 3.4 into 3.5
2 parents fa9ea04 + 2e4571a commit 32acc16

7 files changed

Lines changed: 12 additions & 12 deletions

File tree

Doc/library/ast.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,7 @@ The abstract grammar is currently defined as follows:
104104
:mod:`ast` Helpers
105105
------------------
106106

107-
Apart from the node classes, :mod:`ast` module defines these utility functions
107+
Apart from the node classes, the :mod:`ast` module defines these utility functions
108108
and classes for traversing abstract syntax trees:
109109

110110
.. function:: parse(source, filename='<unknown>', mode='exec')

Doc/library/copy.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -67,8 +67,8 @@ of lists by assigning a slice of the entire list, for example,
6767

6868
Classes can use the same interfaces to control copying that they use to control
6969
pickling. See the description of module :mod:`pickle` for information on these
70-
methods. In fact, :mod:`copy` module uses the registered pickle functions from
71-
:mod:`copyreg` module.
70+
methods. In fact, the :mod:`copy` module uses the registered
71+
pickle functions from the :mod:`copyreg` module.
7272

7373
.. index::
7474
single: __copy__() (copy protocol)

Doc/library/ftplib.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -418,8 +418,8 @@ FTP_TLS Objects
418418

419419
.. method:: FTP_TLS.auth()
420420

421-
Set up secure control connection by using TLS or SSL, depending on what
422-
specified in :meth:`ssl_version` attribute.
421+
Set up a secure control connection by using TLS or SSL, depending on what
422+
is specified in the :attr:`ssl_version` attribute.
423423

424424
.. versionchanged:: 3.4
425425
The method now supports hostname check with

Doc/library/urllib.request.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1168,7 +1168,7 @@ The code for the sample CGI used in the above example is::
11681168
#!/usr/bin/env python
11691169
import sys
11701170
data = sys.stdin.read()
1171-
print('Content-type: text-plain\n\nGot Data: "%s"' % data)
1171+
print('Content-type: text/plain\n\nGot Data: "%s"' % data)
11721172

11731173
Here is an example of doing a ``PUT`` request using :class:`Request`::
11741174

Lib/doctest.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1575,7 +1575,7 @@ def check_output(self, want, got, optionflags):
15751575

15761576
# If `want` contains hex-escaped character such as "\u1234",
15771577
# then `want` is a string of six characters(e.g. [\,u,1,2,3,4]).
1578-
# On the other hand, `got` could be an another sequence of
1578+
# On the other hand, `got` could be another sequence of
15791579
# characters such as [\u1234], so `want` and `got` should
15801580
# be folded to hex-escaped ASCII string to compare.
15811581
got = self._toAscii(got)

Lib/http/cookiejar.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -423,10 +423,10 @@ def join_header_words(lists):
423423
Takes a list of lists of (key, value) pairs and produces a single header
424424
value. Attribute values are quoted if needed.
425425
426-
>>> join_header_words([[("text/plain", None), ("charset", "iso-8859/1")]])
427-
'text/plain; charset="iso-8859/1"'
428-
>>> join_header_words([[("text/plain", None)], [("charset", "iso-8859/1")]])
429-
'text/plain, charset="iso-8859/1"'
426+
>>> join_header_words([[("text/plain", None), ("charset", "iso-8859-1")]])
427+
'text/plain; charset="iso-8859-1"'
428+
>>> join_header_words([[("text/plain", None)], [("charset", "iso-8859-1")]])
429+
'text/plain, charset="iso-8859-1"'
430430
431431
"""
432432
headers = []

Lib/test/test_argparse.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3026,7 +3026,7 @@ class TestShortColumns(HelpTestCase):
30263026
'''Test extremely small number of columns.
30273027
30283028
TestCase prevents "COLUMNS" from being too small in the tests themselves,
3029-
but we don't want any exceptions thrown in such case. Only ugly representation.
3029+
but we don't want any exceptions thrown in such cases. Only ugly representation.
30303030
'''
30313031
def setUp(self):
30323032
env = support.EnvironmentVarGuard()

0 commit comments

Comments
 (0)