]> granicus.if.org Git - python/commitdiff
Issue #25523: Backported a-to-an corrections.
authorSerhiy Storchaka <storchaka@gmail.com>
Mon, 2 Nov 2015 13:06:09 +0000 (15:06 +0200)
committerSerhiy Storchaka <storchaka@gmail.com>
Mon, 2 Nov 2015 13:06:09 +0000 (15:06 +0200)
20 files changed:
Doc/distutils/packageindex.rst
Doc/howto/descriptor.rst
Doc/install/index.rst
Doc/library/email.parser.rst
Doc/library/unittest.rst
Doc/library/zlib.rst
Doc/whatsnew/2.7.rst
Include/unicodeobject.h
Lib/cookielib.py
Lib/ctypes/test/test_random_things.py
Lib/lib-tk/Tkinter.py
Lib/lib2to3/fixes/fix_metaclass.py
Lib/test/regrtest.py
Lib/test/test_dict.py
Lib/test/test_io.py
Lib/test/test_userdict.py
Misc/HISTORY
Misc/NEWS
Modules/_ssl.c
Modules/itertoolsmodule.c

index be72bb77877aaeb72528757acff3257cb76ed574..74944953a6d68627655e43b26de9fe08c122572b 100644 (file)
@@ -169,7 +169,7 @@ follows::
     username: <username>
     password: <password>
 
-The *distutils* section defines a *index-servers* variable that lists the
+The *distutils* section defines an *index-servers* variable that lists the
 name of all sections describing a repository.
 
 Each section describing a repository defines three variables:
index 1a2628127c74fde5c6ab5e4dd7402dd15c6e771c..e2359d98b39f51425f66b9a314c2e36635f6cddc 100644 (file)
@@ -325,7 +325,7 @@ Non-data descriptors provide a simple mechanism for variations on the usual
 patterns of binding functions into methods.
 
 To recap, functions have a :meth:`__get__` method so that they can be converted
-to a method when accessed as attributes.  The non-data descriptor transforms a
+to a method when accessed as attributes.  The non-data descriptor transforms an
 ``obj.f(*args)`` call into ``f(obj, *args)``.  Calling ``klass.f(*args)``
 becomes ``f(*args)``.
 
index 3b6ccba71e91dbf17d87326fce81379ed07994c7..eb499e90849072e9b56162a2a2015e95bf74546c 100644 (file)
@@ -149,7 +149,7 @@ into.  For example, if you've just downloaded a module source distribution
 
 On Windows, you'd probably download :file:`foo-1.0.zip`.  If you downloaded the
 archive file to :file:`C:\\Temp`, then it would unpack into
-:file:`C:\\Temp\\foo-1.0`; you can use either a archive manipulator with a
+:file:`C:\\Temp\\foo-1.0`; you can use either an archive manipulator with a
 graphical user interface (such as WinZip) or a command-line tool (such as
 :program:`unzip` or :program:`pkunzip`) to unpack the archive.  Then, open a
 command prompt window and run::
index 0f99a2fb040e113c7549e134490ae86133437d81..04e23345977b573e09a9b687cd4c9a79a5a6f8cc 100644 (file)
@@ -133,7 +133,7 @@ class.
       methods on file-like objects.
 
       The text contained in *fp* must be formatted as a block of :rfc:`2822`
-      style headers and header continuation lines, optionally preceded by a
+      style headers and header continuation lines, optionally preceded by an
       envelope header.  The header block is terminated either by the end of the
       data or by a blank line.  Following the header block is the body of the
       message (which may contain MIME-encoded subparts).
index 5e3bd1c8b3569188a1a88ad5b6d734e7cc4172ca..ca91cd7e00d4321256e234c7339170272cec1b84 100644 (file)
@@ -568,7 +568,7 @@ Skipping tests and expected failures
 .. versionadded:: 2.7
 
 Unittest supports skipping individual test methods and even whole classes of
-tests.  In addition, it supports marking a test as a "expected failure," a test
+tests.  In addition, it supports marking a test as an "expected failure," a test
 that is broken and will fail, but shouldn't be counted as a failure on a
 :class:`TestResult`.
 
index 192bd4dbec51a0184f977519f24ad00df9334eb7..70e148398875fc95e18d77dac8671db69a2c3bd0 100644 (file)
@@ -31,7 +31,7 @@ The available exception and functions in this module are:
 
 .. function:: adler32(data[, value])
 
-   Computes a Adler-32 checksum of *data*.  (An Adler-32 checksum is almost as
+   Computes an Adler-32 checksum of *data*.  (An Adler-32 checksum is almost as
    reliable as a CRC32 but can be computed much more quickly.)  If *value* is
    present, it is used as the starting value of the checksum; otherwise, a fixed
    default value is used.  This allows computing a running checksum over the
index f4e758932bb1c95e3a8cc96bd66e74c11529df35..e2560c7f94cd52d188fe358e8516e8b83060f7e3 100644 (file)
@@ -1118,7 +1118,7 @@ changes, or look through the Subversion logs for all the details.
   (Fixed by Daniel Stutzbach; :issue:`8729`.)
 
 * Constructors for the parsing classes in the :mod:`ConfigParser` module now
-  take a *allow_no_value* parameter, defaulting to false; if true,
+  take an *allow_no_value* parameter, defaulting to false; if true,
   options without values will be allowed.  For example::
 
     >>> import ConfigParser, StringIO
index 9ab724aa6e0b4ee024877fc8199d2100790cad40..1269bf67e0becebd59da702e88478a71684ee18b 100644 (file)
@@ -1307,7 +1307,7 @@ PyAPI_FUNC(PyObject *) PyUnicode_RichCompare(
     int op                      /* Operation: Py_EQ, Py_NE, Py_GT, etc. */
     );
 
-/* Apply a argument tuple or dictionary to a format string and return
+/* Apply an argument tuple or dictionary to a format string and return
    the resulting Unicode string. */
 
 PyAPI_FUNC(PyObject *) PyUnicode_Format(
index f2df467787c778f634645e752ee75f8695cddcf0..eb9aec47117665b0449ada0bf328081096ccc61d 100644 (file)
@@ -1434,7 +1434,7 @@ class CookieJar:
                         break
                     # convert RFC 2965 Max-Age to seconds since epoch
                     # XXX Strictly you're supposed to follow RFC 2616
-                    #   age-calculation rules.  Remember that zero Max-Age is a
+                    #   age-calculation rules.  Remember that zero Max-Age
                     #   is a request to discard (old and new) cookie, though.
                     k = "expires"
                     v = self._now + v
index 0caffe37c503293cbee08be6e7247fe9f129f62a..d72b7c896893d87fe0733a9bb291491191cb3c48 100644 (file)
@@ -30,7 +30,7 @@ class CallbackTracbackTestCase(unittest.TestCase):
     # value is printed correctly.
     #
     # Changed in 0.9.3: No longer is '(in callback)' prepended to the
-    # error message - instead a additional frame for the C code is
+    # error message - instead an additional frame for the C code is
     # created, then a full traceback printed.  When SystemExit is
     # raised in a callback function, the interpreter exits.
 
index cb7edf0ed44c36f1aee667200737833fc0a462a6..b4f6b3c78808b43bf3bda7f49afaa664caf67712 100644 (file)
@@ -1117,7 +1117,7 @@ class Misc:
 
         return self._bind(('bind', className), sequence, func, add, 0)
     def unbind_class(self, className, sequence):
-        """Unbind for a all widgets with bindtag CLASSNAME for event SEQUENCE
+        """Unbind for all widgets with bindtag CLASSNAME for event SEQUENCE
         all functions."""
         self.tk.call('bind', className , sequence, '')
     def mainloop(self, n=0):
index 4f5593c5feb0d6c7a455649473d679cf3c3e3bc6..8399a130047287e215c092786d2cb23c874673eb 100644 (file)
@@ -114,7 +114,7 @@ def find_metas(cls_node):
                 left_node = expr_node.children[0]
                 if isinstance(left_node, Leaf) and \
                         left_node.value == u'__metaclass__':
-                    # We found a assignment to __metaclass__.
+                    # We found an assignment to __metaclass__.
                     fixup_simple_stmt(node, i, simple_node)
                     remove_trailing_newline(simple_node)
                     yield (node, i, simple_node)
index a51387e93cea3c8726321f2e793f1fb0db6035a6..0007da64b8861df186e21dd0ce61ba1ea0940e29 100755 (executable)
@@ -62,7 +62,7 @@ Special runs
 
 Additional Option Details:
 
--r randomizes test execution order. You can use --randseed=int to provide a
+-r randomizes test execution order. You can use --randseed=int to provide an
 int seed value for the randomizer; this is useful for reproducing troublesome
 test orders.
 
index a5685b98eb79d5e74128e41b561522b279489903..1c63fc0e0987f84f2c3802c278e61ee781ea51e5 100644 (file)
@@ -448,7 +448,7 @@ class DictTest(unittest.TestCase):
         # (D) subclass defines __missing__ method returning a value
         # (E) subclass defines __missing__ method raising RuntimeError
         # (F) subclass sets __missing__ instance variable (no effect)
-        # (G) subclass doesn't define __missing__ at a all
+        # (G) subclass doesn't define __missing__ at all
         class D(dict):
             def __missing__(self, key):
                 return 42
index 252d5d88bf2003694080ef61ae1e56ae9bf7eae5..34760c9533ec7c3899c9a3fbbbbdf7a39876e35a 100644 (file)
@@ -15,7 +15,7 @@
 ################################################################################
 # When writing tests for io, it's important to test both the C and Python
 # implementations. This is usually done by writing a base test that refers to
-# the type it is testing as a attribute. Then it provides custom subclasses to
+# the type it is testing as an attribute. Then it provides custom subclasses to
 # test both implementations. This file has lots of examples.
 ################################################################################
 
index fa80feabe400f9769f8a0f9e85a20c1978be4381..99526a238c358c10416f697c903c07c4e0a7a81d 100644 (file)
@@ -188,7 +188,7 @@ class UserDictTest(mapping_tests.TestHashMappingProtocol):
         # (D) subclass defines __missing__ method returning a value
         # (E) subclass defines __missing__ method raising RuntimeError
         # (F) subclass sets __missing__ instance variable (no effect)
-        # (G) subclass doesn't define __missing__ at a all
+        # (G) subclass doesn't define __missing__ at all
         class D(UserDict.UserDict):
             def __missing__(self, key):
                 return 42
index a29b9077b17425ed10ace3bec0d1de28bc6e9112..41317e5ffeccd116e17307a15c59baef9949b2d7 100644 (file)
@@ -1495,7 +1495,7 @@ Extension Modules
 
 - Bug #1194181: bz2.BZ2File didn't handle mode 'U' correctly.
 
-- Patch #1212117: os.stat().st_flags is now accessible as a attribute
+- Patch #1212117: os.stat().st_flags is now accessible as an attribute
   if available on the platform.
 
 - Patch #1103951: Expose O_SHLOCK and O_EXLOCK in the posix module if
index b0b89620305f081c90c509934a852d44af0df898..c9dbb46545c118a5ba78bfba273d5178ff30c39b 100644 (file)
--- a/Misc/NEWS
+++ b/Misc/NEWS
@@ -936,7 +936,7 @@ IDLE
   Changes are written to HOME/.idlerc/config-extensions.cfg.
   Original patch by Tal Einat.
 
-- Issue #16233: A module browser (File : Class Browser, Alt+C) requires a
+- Issue #16233: A module browser (File : Class Browser, Alt+C) requires an
   editor window with a filename.  When Class Browser is requested otherwise,
   from a shell, output window, or 'Untitled' editor, Idle no longer displays
   an error box.  It now pops up an Open Module box (Alt+M). If a valid name
index dff592559371117456917af50dc2c8e1a61450f7..17e1b852fe85d4ed3adaa61400206658b1b07450 100644 (file)
@@ -2788,7 +2788,7 @@ load_verify_locations(PySSLContext *self, PyObject *args, PyObject *kwds)
             cadata_ascii = PyUnicode_AsASCIIString(cadata);
             if (cadata_ascii == NULL) {
                 PyErr_SetString(PyExc_TypeError,
-                                "cadata should be a ASCII string or a "
+                                "cadata should be an ASCII string or a "
                                 "bytes-like object");
                 goto error;
             }
index 394bbafbed316caaf127b553110787eabadc1ce6..c3cf1c0bccb2ab69c194394247d2eb824064fe55 100644 (file)
@@ -1410,7 +1410,7 @@ PyDoc_STRVAR(starmap_doc,
 "starmap(function, sequence) --> starmap object\n\
 \n\
 Return an iterator whose values are returned from the function evaluated\n\
-with a argument tuple taken from the given sequence.");
+with an argument tuple taken from the given sequence.");
 
 static PyTypeObject starmap_type = {
     PyVarObject_HEAD_INIT(NULL, 0)