Skip to content

Commit 70c502a

Browse files
committed
Fix typos and English grammar in documentation and code comment
1 parent d470480 commit 70c502a

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

Doc/whatsnew/2.0.rst

+1-1
Original file line numberDiff line numberDiff line change
@@ -506,7 +506,7 @@ arguments and/or a dictionary of keyword arguments. In Python 1.5 and earlier,
506506
you'd use the :func:`apply` built-in function: ``apply(f, args, kw)`` calls the
507507
function :func:`f` with the argument tuple *args* and the keyword arguments in
508508
the dictionary *kw*. :func:`apply` is the same in 2.0, but thanks to a patch
509-
from Greg Ewing, ``f(*args, **kw)`` as a shorter and clearer way to achieve the
509+
from Greg Ewing, ``f(*args, **kw)`` is a shorter and clearer way to achieve the
510510
same effect. This syntax is symmetrical with the syntax for defining
511511
functions::
512512

Lib/test/test_coroutines.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -1423,7 +1423,7 @@ async def main():
14231423

14241424
with warnings.catch_warnings():
14251425
warnings.simplefilter("error")
1426-
# Test that __aiter__ that returns an asyncronous iterator
1426+
# Test that __aiter__ that returns an asynchronous iterator
14271427
# directly does not throw any warnings.
14281428
run_async(main())
14291429
self.assertEqual(I, 111011)

Misc/NEWS

+2-2
Original file line numberDiff line numberDiff line change
@@ -2215,8 +2215,8 @@ Library
22152215
writer failed in BufferedRWPair.close().
22162216

22172217
- Issue #23622: Unknown escapes in regular expressions that consist of ``'\'``
2218-
and ASCII letter now raise a deprecation warning and will be forbidden in
2219-
Python 3.6.
2218+
and an ASCII letter now raise a deprecation warning and will be forbidden
2219+
in Python 3.6.
22202220

22212221
- Issue #23671: string.Template now allows specifying the "self" parameter as
22222222
a keyword argument. string.Formatter now allows specifying the "self" and

0 commit comments

Comments
 (0)