Skip to content

Commit f157982

Browse files
committed
Issue #27076: More doc and comment spelling fixes for 3.6, by Ville Skyttä
1 parent 3e04d5b commit f157982

File tree

4 files changed

+5
-5
lines changed

4 files changed

+5
-5
lines changed

Doc/library/datetime.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2079,7 +2079,7 @@ Notes:
20792079
Similar to ``%U`` and ``%W``, ``%V`` is only used in calculations when the
20802080
day of the week and the ISO year (``%G``) are specified in a
20812081
:meth:`strptime` format string. Also note that ``%G`` and ``%Y`` are not
2082-
interchangable.
2082+
interchangeable.
20832083

20842084
.. rubric:: Footnotes
20852085

Doc/library/imaplib.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -507,7 +507,7 @@ An :class:`IMAP4` instance has the following methods:
507507
allowed creation of such tags, and popular IMAP servers, such as Gmail,
508508
accept and produce such flags. There are non-Python programs which also
509509
create such tags. Although it is an RFC violation and IMAP clients and
510-
servers are supposed to be strict, imaplib nontheless continues to allow
510+
servers are supposed to be strict, imaplib nonetheless continues to allow
511511
such tags to be created for backward compatibility reasons, and as of
512512
python 3.6, handles them if they are sent from the server, since this
513513
improves real-world compatibility.

Lib/statistics.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -430,9 +430,9 @@ class 3.5-4.5, and interpolation is used to estimate it.
430430
L = float(x) - float(interval)/2
431431

432432
# Uses bisection search to search for x in data with log(n) time complexity
433-
# Find the position of leftmost occurence of x in data
433+
# Find the position of leftmost occurrence of x in data
434434
l1 = _find_lteq(data, x)
435-
# Find the position of rightmost occurence of x in data[l1...len(data)]
435+
# Find the position of rightmost occurrence of x in data[l1...len(data)]
436436
# Assuming always l1 <= l2
437437
l2 = _find_rteq(data, l1, x)
438438
cf = l1

Lib/test/test_itertools.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -635,7 +635,7 @@ def test_cycle_setstate(self):
635635
# Mode 0 is efficient. It uses an incompletely consumed input
636636
# iterator to build a cycle object and then passes in state with
637637
# a list of previously consumed values. There is no data
638-
# overlap bewteen the two.
638+
# overlap between the two.
639639
c = cycle('defg')
640640
c.__setstate__((list('abc'), 0))
641641
self.assertEqual(take(20, c), list('defgabcdefgabcdefgab'))

0 commit comments

Comments
 (0)