]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
Fix typos and English grammar in documentation and code comment
authorMartin Panter <vadmium+py@gmail.com>
Sun, 12 Jun 2016 06:14:03 +0000 (06:14 +0000)
committerMartin Panter <vadmium+py@gmail.com>
Sun, 12 Jun 2016 06:14:03 +0000 (06:14 +0000)
Doc/whatsnew/2.0.rst
Lib/test/test_coroutines.py
Misc/NEWS

index 87462f3f84b9a5bcb368f4fd50f3343ae8ea30a1..4d49af147597f685650b723597cde6d991cfd1b0 100644 (file)
@@ -506,7 +506,7 @@ arguments and/or a dictionary of keyword arguments. In Python 1.5 and earlier,
 you'd use the :func:`apply` built-in function: ``apply(f, args, kw)`` calls the
 function :func:`f` with the argument tuple *args* and the keyword arguments in
 the dictionary *kw*.  :func:`apply`  is the same in 2.0, but thanks to a patch
-from Greg Ewing, ``f(*args, **kw)`` as a shorter and clearer way to achieve the
+from Greg Ewing, ``f(*args, **kw)`` is a shorter and clearer way to achieve the
 same effect.  This syntax is symmetrical with the syntax for defining
 functions::
 
index 4f725aeab2bf451227d0c512b4a35b8fb8558de1..d0cefb0ef4434b4a98c9ec6c53660f369f8fd3bb 100644 (file)
@@ -1423,7 +1423,7 @@ class CoroutineTest(unittest.TestCase):
 
         with warnings.catch_warnings():
             warnings.simplefilter("error")
-            # Test that __aiter__ that returns an asyncronous iterator
+            # Test that __aiter__ that returns an asynchronous iterator
             # directly does not throw any warnings.
             run_async(main())
         self.assertEqual(I, 111011)
index 8a39c0880e7dfa0de921602bc602433b1ef36418..ddcde75cead71bebaee66305d84b078e045e461d 100644 (file)
--- a/Misc/NEWS
+++ b/Misc/NEWS
@@ -2215,8 +2215,8 @@ Library
   writer failed in BufferedRWPair.close().
 
 - Issue #23622: Unknown escapes in regular expressions that consist of ``'\'``
-  and ASCII letter now raise a deprecation warning and will be forbidden in
-  Python 3.6.
+  and an ASCII letter now raise a deprecation warning and will be forbidden
+  in Python 3.6.
 
 - Issue #23671: string.Template now allows specifying the "self" parameter as
   a keyword argument.  string.Formatter now allows specifying the "self" and