]> granicus.if.org Git - python/commitdiff
Issue #25523: Correct "a" article to "an" article
authorMartin Panter <vadmium+py@gmail.com>
Mon, 2 Nov 2015 03:37:02 +0000 (03:37 +0000)
committerMartin Panter <vadmium+py@gmail.com>
Mon, 2 Nov 2015 03:37:02 +0000 (03:37 +0000)
This changes the main documentation, doc strings, source code comments, and a
couple error messages in the test suite. In some cases the word was removed
to fix the grammar.

52 files changed:
Demo/tix/INSTALL.txt
Doc/howto/sorting.rst
Doc/library/chunk.rst
Doc/library/difflib.rst
Doc/library/ftplib.rst
Doc/library/io.rst
Doc/library/optparse.rst
Doc/library/os.path.rst
Doc/library/smtplib.rst
Doc/library/socket.rst
Doc/library/sqlite3.rst
Doc/library/sunau.rst
Doc/library/webbrowser.rst
Doc/reference/datamodel.rst
Doc/tutorial/errors.rst
Doc/whatsnew/2.1.rst
Include/abstract.h
Include/codecs.h
Lib/_pyio.py
Lib/chunk.py
Lib/codecs.py
Lib/distutils/cygwinccompiler.py
Lib/ftplib.py
Lib/idlelib/EditorWindow.py
Lib/idlelib/ReplaceDialog.py
Lib/io.py
Lib/lib2to3/fixes/fix_input.py
Lib/msilib/schema.py
Lib/test/decimaltestdata/fma.decTest
Lib/test/decimaltestdata/multiply.decTest
Lib/test/test_os.py
Lib/test/test_support.py
Lib/xmlrpclib.py
Misc/HISTORY
Misc/NEWS
Misc/cheatsheet
Modules/_ctypes/libffi/src/x86/darwin64.S
Modules/_ctypes/libffi/src/x86/unix64.S
Modules/_ctypes/libffi_osx/x86/darwin64.S
Modules/_hashopenssl.c
Modules/_io/_iomodule.c
Modules/_io/iobase.c
Modules/_io/textio.c
Modules/audioop.c
Modules/expat/pyexpatns.h
Modules/readline.c
Objects/abstract.c
PC/msvcrtmodule.c
PC/os2emx/Makefile
Python/thread.c
Tools/msi/schema.py
Tools/msi/uisample.py

index ac70b68c800339e71c74d6e44912f2a68c42db0d..c598e40a30e52b84bbfa8af3e8a18fd7fa4a89d5 100644 (file)
@@ -4,7 +4,7 @@ Installing Tix.py
 ----------------
 
 0) To use Tix.py, you need Tcl/Tk (V8.3.3), Tix (V8.1.1) and Python (V2.1.1).
-   Tix.py has been written and tested on a Intel Pentium running RH Linux 5.2
+   Tix.py has been written and tested on an Intel Pentium running RH Linux 5.2
    and Mandrake Linux 7.0 and Windows with the above mentioned packages.
 
    Older versions, e.g. Tix 4.1 and Tk 8.0, might also work.
index 675ed97a777a3a4a896175198980a65ed89fd975..7da2d43c878478062328a1dbaf7b28bfbbbdf050 100644 (file)
@@ -90,7 +90,7 @@ Operator Module Functions
 The key-function patterns shown above are very common, so Python provides
 convenience functions to make accessor functions easier and faster. The operator
 module has :func:`operator.itemgetter`, :func:`operator.attrgetter`, and
-starting in Python 2.5 a :func:`operator.methodcaller` function.
+starting in Python 2.5 an :func:`operator.methodcaller` function.
 
 Using those functions, the above examples become simpler and faster:
 
index 04c7e27a77486891619cbfbaf5f8de8dfaf7f338..d31fa0ac9853a50a59c420d775cea7eee12fc688 100644 (file)
@@ -48,7 +48,7 @@ Usually an IFF-type file consists of one or more chunks.  The proposed usage of
 the :class:`Chunk` class defined here is to instantiate an instance at the start
 of each chunk and read from the instance until it reaches the end, after which a
 new instance can be instantiated. At the end of the file, creating a new
-instance will fail with a :exc:`EOFError` exception.
+instance will fail with an :exc:`EOFError` exception.
 
 
 .. class:: Chunk(file[, align, bigendian, inclheader])
index ead6b7a430ae79ef9cb9eaee9185b4c35f137995..c6bf3ef6775d290760c808cc8972143e792f7109 100644 (file)
@@ -276,7 +276,7 @@ diffs. For comparing directories and files, see also, the :mod:`filecmp` module.
    generating the delta lines) in unified diff format.
 
    Unified diffs are a compact way of showing just the lines that have changed plus
-   a few lines of context.  The changes are shown in a inline style (instead of
+   a few lines of context.  The changes are shown in an inline style (instead of
    separate before/after blocks).  The number of context lines is set by *n* which
    defaults to three.
 
index 3ab7b3b6cc602f17cee0a18c5c2842ee31d4714e..b155daf29e213ef82f11f936a671f9c3b91b89bd 100644 (file)
@@ -283,9 +283,9 @@ followed by ``lines`` for the text version or ``binary`` for the binary version.
 
 .. method:: FTP.transfercmd(cmd[, rest])
 
-   Initiate a transfer over the data connection.  If the transfer is active, send a
+   Initiate a transfer over the data connection.  If the transfer is active, send an
    ``EPRT`` or  ``PORT`` command and the transfer command specified by *cmd*, and
-   accept the connection.  If the server is passive, send a ``EPSV`` or ``PASV``
+   accept the connection.  If the server is passive, send an ``EPSV`` or ``PASV``
    command, connect to it, and start the transfer command.  Either way, return the
    socket for the connection.
 
index d3cdbf138e3590a05765e40749592b858dfccb7a..633a6aff1cd2a45304ae0186f36442fabf23bbaa 100644 (file)
@@ -221,7 +221,7 @@ I/O Base Classes
    Even though :class:`IOBase` does not declare :meth:`read`, :meth:`readinto`,
    or :meth:`write` because their signatures will vary, implementations and
    clients should consider those methods part of the interface.  Also,
-   implementations may raise a :exc:`IOError` when operations they do not
+   implementations may raise an :exc:`IOError` when operations they do not
    support are called.
 
    The basic type used for binary data read from or written to a file is
index dfb43a1de57b6a7732f4961f0489db5f91066bb3..c1ed15b0b606394a75f7cd8cc9eb35e0bd3af855 100644 (file)
@@ -1327,7 +1327,7 @@ where the input parameters are
    the list of arguments to process (default: ``sys.argv[1:]``)
 
 ``values``
-   a :class:`optparse.Values` object to store option arguments in (default: a
+   an :class:`optparse.Values` object to store option arguments in (default: a
    new instance of :class:`Values`) -- if you give an existing object, the
    option defaults will not be initialized on it
 
index 5d7edd1f1123aeaf2429179767f249561b8a2297..99a36afb5d0545936d8e6bbecba312b4d6900893 100644 (file)
@@ -256,7 +256,7 @@ the :mod:`glob` module.)
 .. function:: samefile(path1, path2)
 
    Return ``True`` if both pathname arguments refer to the same file or directory
-   (as indicated by device number and i-node number). Raise an exception if a
+   (as indicated by device number and i-node number). Raise an exception if an
    :func:`os.stat` call on either pathname fails.
 
    Availability: Unix.
index 5b2808d41ee05d68d158f26bf0d300a13ea1fa5a..b6e76895dd9323ab1cf94f6d61c2365166be0cd2 100644 (file)
@@ -22,7 +22,7 @@ Protocol) and :rfc:`1869` (SMTP Service Extensions).
 
 .. class:: SMTP([host[, port[, local_hostname[, timeout]]]])
 
-   A :class:`SMTP` instance encapsulates an SMTP connection.  It has methods
+   An :class:`SMTP` instance encapsulates an SMTP connection.  It has methods
    that support a full repertoire of SMTP and ESMTP operations. If the optional
    host and port parameters are given, the SMTP :meth:`connect` method is
    called with those parameters during initialization.  If specified,
@@ -45,7 +45,7 @@ Protocol) and :rfc:`1869` (SMTP Service Extensions).
 
 .. class:: SMTP_SSL([host[, port[, local_hostname[, keyfile[, certfile[, timeout]]]]]])
 
-   A :class:`SMTP_SSL` instance behaves exactly the same as instances of
+   An :class:`SMTP_SSL` instance behaves exactly the same as instances of
    :class:`SMTP`. :class:`SMTP_SSL` should be used for situations where SSL is
    required from the beginning of the connection and using :meth:`starttls` is
    not appropriate. If *host* is not specified, the local host is used. If
index f79eba6c4bfd174ae06074f67b0b6d1082db28d5..73b5d5c9d87a8ced0581c4f644eb3f5fe729d403 100644 (file)
@@ -757,7 +757,7 @@ correspond to Unix system calls applicable to sockets.
    Set blocking or non-blocking mode of the socket: if *flag* is 0, the socket is
    set to non-blocking, else to blocking mode.  Initially all sockets are in
    blocking mode.  In non-blocking mode, if a :meth:`recv` call doesn't find any
-   data, or if a :meth:`send` call can't immediately dispose of the data, a
+   data, or if a :meth:`send` call can't immediately dispose of the data, an
    :exc:`error` exception is raised; in blocking mode, the calls block until they
    can proceed. ``s.setblocking(0)`` is equivalent to ``s.settimeout(0.0)``;
    ``s.setblocking(1)`` is equivalent to ``s.settimeout(None)``.
index f897234d134a1a97beae5bf7e6b467fa978ef00f..2b730e80928eaf34e8a4315afce31d44db013a1a 100644 (file)
@@ -583,7 +583,7 @@ Cursor Objects
    .. attribute:: lastrowid
 
       This read-only attribute provides the rowid of the last modified row. It is
-      only set if you issued a ``INSERT`` statement using the :meth:`execute`
+      only set if you issued an ``INSERT`` statement using the :meth:`execute`
       method. For operations other than ``INSERT`` or when :meth:`executemany` is
       called, :attr:`lastrowid` is set to :const:`None`.
 
index 4bdb99bea6161a033e53c1760bd6f05e1eba6778..5d57d4b95784f9e1df566a99a116e7cbb9a79a1c 100644 (file)
@@ -54,8 +54,8 @@ The :mod:`sunau` module defines the following functions:
 
    Note that it does not allow read/write files.
 
-   A *mode* of ``'r'`` returns a :class:`AU_read` object, while a *mode* of ``'w'``
-   or ``'wb'`` returns a :class:`AU_write` object.
+   A *mode* of ``'r'`` returns an :class:`AU_read` object, while a *mode* of ``'w'``
+   or ``'wb'`` returns an :class:`AU_write` object.
 
 
 .. function:: openfp(file, mode)
index f74b89ff82b59519501e710519fb7ead713760b7..03c5713300961b68d3cb5db5cab272283168b9c5 100644 (file)
@@ -20,7 +20,7 @@ available.  If text-mode browsers are used, the calling process will block until
 the user exits the browser.
 
 If the environment variable :envvar:`BROWSER` exists, it is interpreted to
-override the platform default list of browsers, as a :data:`os.pathsep`-separated
+override the platform default list of browsers, as an :data:`os.pathsep`-separated
 list of browsers to try in order.  When the value of a list part contains the
 string ``%s``, then it is  interpreted as a literal browser command line to be
 used with the argument URL substituted for ``%s``; if the part does not contain
index 9e62dfc65b020d905f354deaa695458375e79a27..3f3b30f4deaebfc1dc397cea8f95b18cde3e959b 100644 (file)
@@ -1418,7 +1418,7 @@ Basic customization
    will not be usable in hashed collections.  If a class defines mutable objects
    and implements a :meth:`__cmp__` or :meth:`__eq__` method, it should not
    implement :meth:`__hash__`, since hashable collection implementations require
-   that a object's hash value is immutable (if the object's hash value changes,
+   that an object's hash value is immutable (if the object's hash value changes,
    it will be in the wrong hash bucket).
 
    User-defined classes have :meth:`__cmp__` and :meth:`__hash__` methods
index f93a544d32fe1964da5b35b29b51ab349147f39b..9787e6b439dae72d94932bc88b6c9e463814e3f0 100644 (file)
@@ -345,7 +345,7 @@ example::
 A *finally clause* is always executed before leaving the :keyword:`try`
 statement, whether an exception has occurred or not. When an exception has
 occurred in the :keyword:`try` clause and has not been handled by an
-:keyword:`except` clause (or it has occurred in a :keyword:`except` or
+:keyword:`except` clause (or it has occurred in an :keyword:`except` or
 :keyword:`else` clause), it is re-raised after the :keyword:`finally` clause has
 been executed.  The :keyword:`finally` clause is also executed "on the way out"
 when any other clause of the :keyword:`try` statement is left via a
index d25e48d06bec2be59a73f6b42e0e564e906aa9bb..f756506bfe4dc9a93c946831c7992087867be2dd 100644 (file)
@@ -555,7 +555,7 @@ will include metadata, making it possible to build automated cataloguing systems
 and experiment with them.  With the result experience, perhaps it'll be possible
 to design a really good catalog and then build support for it into Python 2.2.
 For example, the Distutils :command:`sdist` and :command:`bdist_\*` commands
-could support a ``upload`` option that would automatically upload your
+could support an ``upload`` option that would automatically upload your
 package to a catalog server.
 
 You can start creating packages containing :file:`PKG-INFO` even if you're not
index 78a182548dd43aa88f42b3d3ae77fd9ef04310ad..6ccda667cd099f9f50f8647b550b9892f16e59fd 100644 (file)
@@ -94,7 +94,7 @@ Proposal
   numeric, sequence, and mapping.  Each protocol consists of a
   collection of related operations.  If an operation that is not
   provided by a particular type is invoked, then a standard exception,
-  NotImplementedError is raised with a operation name as an argument.
+  NotImplementedError is raised with an operation name as an argument.
   In addition, for convenience this interface defines a set of
   constructors for building objects of built-in types.  This is needed
   so new objects can be returned from C functions that otherwise treat
index 8a9041badf986bbd986ac34a4b7bbf306f7bbc02..851bc9f10788202fab63bbe5c1406827641e06fe 100644 (file)
@@ -146,14 +146,14 @@ PyAPI_FUNC(PyObject *) PyCodec_Decoder(
        const char *encoding
        );
 
-/* Get a IncrementalEncoder object for the given encoding. */
+/* Get an IncrementalEncoder object for the given encoding. */
 
 PyAPI_FUNC(PyObject *) PyCodec_IncrementalEncoder(
        const char *encoding,
        const char *errors
        );
 
-/* Get a IncrementalDecoder object function for the given encoding. */
+/* Get an IncrementalDecoder object function for the given encoding. */
 
 PyAPI_FUNC(PyObject *) PyCodec_IncrementalDecoder(
        const char *encoding,
index 11348b2d93943789d573927fbdd08f695f72e43c..f022a4e88b8ed7ff197b7ae82f0f8b61c20e3fc0 100644 (file)
@@ -274,7 +274,7 @@ class IOBase:
     Even though IOBase does not declare read, readinto, or write because
     their signatures will vary, implementations and clients should
     consider those methods part of the interface. Also, implementations
-    may raise a IOError when operations they do not support are called.
+    may raise an IOError when operations they do not support are called.
 
     The basic type used for binary data read from or written to a file is
     the bytes type. Method arguments may also be bytearray or memoryview of
index 3e3b5a4ea7b18939f9842a9ef1528d1e53946e7b..2d15abe8bf85b14092a49ade2cbc9317ab221be9 100644 (file)
@@ -21,7 +21,7 @@ Usually an IFF-type file consists of one or more chunks.  The proposed
 usage of the Chunk class defined here is to instantiate an instance at
 the start of each chunk and read from the instance until it reaches
 the end, after which a new instance can be instantiated.  At the end
-of the file, creating a new instance will fail with a EOFError
+of the file, creating a new instance will fail with an EOFError
 exception.
 
 Usage:
index 3d9be35ce5a53e56141348ac24b294697f04dbef..590238ec502bfb6466e85b9177e6c31bd51ce1cb 100644 (file)
@@ -252,7 +252,7 @@ class IncrementalDecoder(object):
     """
     def __init__(self, errors='strict'):
         """
-        Creates a IncrementalDecoder instance.
+        Creates an IncrementalDecoder instance.
 
         The IncrementalDecoder may use different error handling schemes by
         providing the errors keyword argument. See the module docstring
@@ -1012,7 +1012,7 @@ def iterencode(iterator, encoding, errors='strict', **kwargs):
     """
     Encoding iterator.
 
-    Encodes the input strings from the iterator using a IncrementalEncoder.
+    Encodes the input strings from the iterator using an IncrementalEncoder.
 
     errors and kwargs are passed through to the IncrementalEncoder
     constructor.
@@ -1030,7 +1030,7 @@ def iterdecode(iterator, encoding, errors='strict', **kwargs):
     """
     Decoding iterator.
 
-    Decodes the input strings from the iterator using a IncrementalDecoder.
+    Decodes the input strings from the iterator using an IncrementalDecoder.
 
     errors and kwargs are passed through to the IncrementalDecoder
     constructor.
index c72a2495955482ff0ace29e2218e8b1171ca46db..258e138b045cd092de88a4276302a2861ea182ec 100644 (file)
@@ -347,7 +347,7 @@ class Mingw32CCompiler (CygwinCCompiler):
 # class Mingw32CCompiler
 
 # Because these compilers aren't configured in Python's pyconfig.h file by
-# default, we should at least warn the user if he is using a unmodified
+# default, we should at least warn the user if he is using an unmodified
 # version.
 
 CONFIG_H_OK = "ok"
index 449ce718cfb31b2c9c4a14c14860ec76577a10c5..37397419016ffa72d5d0efa7a3c17d66a70a91e4 100644 (file)
@@ -264,7 +264,7 @@ class FTP:
         return self.voidcmd(cmd)
 
     def sendeprt(self, host, port):
-        '''Send a EPRT command with the current host and the given port number.'''
+        '''Send an EPRT command with the current host and the given port number.'''
         af = 0
         if self.af == socket.AF_INET:
             af = 1
@@ -842,7 +842,7 @@ def parse227(resp):
 
 
 def parse229(resp, peer):
-    '''Parse the '229' response for a EPSV request.
+    '''Parse the '229' response for an EPSV request.
     Raises error_proto if it does not contain '(|||port|)'
     Return ('host.addr.as.numbers', port#) tuple.'''
 
index 0c5b7139ded393ec2043e72c8a15e88a733fc050..8a337192ad1de8c717f7676a4be953c31bc5f27e 100644 (file)
@@ -1384,7 +1384,7 @@ class EditorWindow(object):
             text.see("insert")
             text.undo_block_stop()
 
-    # Our editwin provides a is_char_in_string function that works
+    # Our editwin provides an is_char_in_string function that works
     # with a Tk text index, but PyParse only knows about offsets into
     # a string. This builds a function for PyParse that accepts an
     # offset.
index 9a9f74ca77fe537be6c322a2073235cc0697e7af..66a871a947e69ff71d14c9aa16db95b1541bb2cb 100644 (file)
@@ -59,7 +59,7 @@ class ReplaceDialog(SearchDialogBase):
     def default_command(self, event=None):
         if self.do_find(self.ok):
             if self.do_replace():   # Only find next match if replace succeeded.
-                                    # A bad re can cause it to fail.
+                                    # A bad re can cause it to fail.
                 self.do_find(0)
 
     def _replace_expand(self, m, repl):
index 14384930c5ce3cd1753ce5f255bdafeecc39a4d2..53ee102b5e98840ebbb940216662f700aa182c34 100644 (file)
--- a/Lib/io.py
+++ b/Lib/io.py
@@ -19,7 +19,7 @@ streams. BytesIO is a simple stream of in-memory bytes.
 Another IOBase subclass, TextIOBase, deals with the encoding and decoding
 of streams into text. TextIOWrapper, which extends it, is a buffered text
 interface to a buffered raw stream (`BufferedIOBase`). Finally, StringIO
-is a in-memory stream for text.
+is an in-memory stream for text.
 
 Argument names are not part of the specification, and only the arguments
 of open() are intended to be used as keyword arguments.
index fbf4c72f5c9d8bb3f05da8b25d5bb3fe59d113bf..728636b62ece3a3f4eb193a9f1e422cd6a48f09e 100644 (file)
@@ -17,7 +17,7 @@ class FixInput(fixer_base.BaseFix):
               """
 
     def transform(self, node, results):
-        # If we're already wrapped in a eval() call, we're done.
+        # If we're already wrapped in an eval() call, we're done.
         if context.match(node.parent.parent):
             return
 
index b84eb220f816b16e208c33f1b0dd9c1cd8f3a2a5..e13219473daf08380108348137e501d8b28f3de5 100644 (file)
@@ -733,7 +733,7 @@ _Validation_records = [
 (u'CustomAction',u'Source',u'Y',None, None, None, None, u'CustomSource',None, u'The table reference of the source of the code.',),
 (u'CustomAction',u'Target',u'Y',None, None, None, None, u'Formatted',None, u'Execution parameter, depends on the type of custom action',),
 (u'DrLocator',u'Signature_',u'N',None, None, None, None, u'Identifier',None, u'The Signature_ represents a unique file signature and is also the foreign key in the Signature table.',),
-(u'DrLocator',u'Path',u'Y',None, None, None, None, u'AnyPath',None, u'The path on the user system. This is either a subpath below the value of the Parent or a full path. The path may contain properties enclosed within [ ] that will be expanded.',),
+(u'DrLocator',u'Path',u'Y',None, None, None, None, u'AnyPath',None, u'The path on the user system. This is either a subpath below the value of the Parent or a full path. The path may contain properties enclosed within [ ] that will be expanded.',),
 (u'DrLocator',u'Depth',u'Y',0,32767,None, None, None, None, u'The depth below the path to which the Signature_ is recursively searched. If absent, the depth is assumed to be 0.',),
 (u'DrLocator',u'Parent',u'Y',None, None, None, None, u'Identifier',None, u'The parent file signature. It is also a foreign key in the Signature table. If null and the Path column does not expand to a full path, then all the fixed drives of the user system are searched using the Path.',),
 (u'DuplicateFile',u'File_',u'N',None, None, u'File',1,u'Identifier',None, u'Foreign key referencing the source file to be duplicated.',),
index a8197ef8a43ff1a150c8350b100b0b64588b85dd..ee2a8d48e8c5b99995cf185977e451f60b53563a 100644 (file)
@@ -148,7 +148,7 @@ fmax2018 fma  9.999999 -9.999999  0E+999999  -> -100.000 Inexact Rounded
 fmax2019 fma -9.999999  9.999999  0E+999999  -> -100.000 Inexact Rounded
 fmax2020 fma -9.999999 -9.999999  0E+999999  ->  100.000 Inexact Rounded
 
--- 1999.12.21: next one is a edge case if intermediate longs are used
+-- 1999.12.21: next one is an edge case if intermediate longs are used
 precision: 15
 fmax2059 fma 999999999999 9765625  0E+999999  -> 9.76562499999023E+18 Inexact Rounded
 precision: 30
index 6a23d5a6e0a133200689b8db29d5ea354a06d9df..e8bd77a87c30156192290c660abe512590f7f8c9 100644 (file)
@@ -49,7 +49,7 @@ mulx018 multiply  9.999999999 -9.999999999 -> -100.000 Inexact Rounded
 mulx019 multiply -9.999999999  9.999999999 -> -100.000 Inexact Rounded
 mulx020 multiply -9.999999999 -9.999999999 ->  100.000 Inexact Rounded
 
--- 1999.12.21: next one is a edge case if intermediate longs are used
+-- 1999.12.21: next one is an edge case if intermediate longs are used
 precision: 15
 mulx059 multiply 999999999999 9765625 -> 9.76562499999023E+18 Inexact Rounded
 precision: 30
index 57c7c8847c6c5c0924ae82055f8c70cbbd16399f..fb3489385779d4e21a490edebfe213132cb18f9c 100644 (file)
@@ -649,7 +649,7 @@ class TestInvalidFD(unittest.TestCase):
         except OSError as e:
             self.assertEqual(e.errno, errno.EBADF)
         else:
-            self.fail("%r didn't raise a OSError with a bad file descriptor"
+            self.fail("%r didn't raise an OSError with a bad file descriptor"
                       % f)
 
     @unittest.skipUnless(hasattr(os, 'isatty'), 'test needs os.isatty()')
index 85f99659e2f6ba8acbdf8894708e9f6b131ea990..89c5719df5d8d62e6477745f6a4af294c33936d9 100644 (file)
@@ -196,7 +196,7 @@ if sys.platform.startswith("win"):
         # The exponential backoff of the timeout amounts to a total
         # of ~1 second after which the deletion is probably an error
         # anyway.
-        # Testing on a i7@4.3GHz shows that usually only 1 iteration is
+        # Testing on an i7@4.3GHz shows that usually only 1 iteration is
         # required when contention occurs.
         timeout = 0.001
         while timeout < 1.0:
index e072f71a3acac086eef2be4b65800826be2c7db2..b0e748528302628c65e166f3432a226469ead1e1 100644 (file)
@@ -970,7 +970,7 @@ class MultiCallIterator:
                   "unexpected type in multicall result"
 
 class MultiCall:
-    """server -> a object used to boxcar method calls
+    """server -> an object used to boxcar method calls
 
     server should be a ServerProxy object.
 
@@ -1334,7 +1334,7 @@ class Transport:
     ##
     # Create parser.
     #
-    # @return A 2-tuple containing a parser and a unmarshaller.
+    # @return A 2-tuple containing a parser and an unmarshaller.
 
     def getparser(self):
         # get parser and unmarshaller
index fa0c6236e036b4e4ce82ea40e67e3939d6172457..ae5c643a5836eeba5456f96ec4de631e1575c5be 100644 (file)
@@ -388,7 +388,7 @@ Core and builtins
 -----------------
 
 - Bug #1441486: The literal representation of -(sys.maxint - 1)
-  again evaluates to a int object, not a long.
+  again evaluates to an int object, not a long.
 
 - Bug #1501934: The scope of global variables that are locally assigned
   using augmented assignment is now correctly determined.
@@ -4295,7 +4295,7 @@ Core and builtins
   interpreter executions, would fail.
 
 - "%c" % u"a" now returns a unicode string instead of raising a
-  TypeError. u"%c" % 0xffffffff now raises a OverflowError instead
+  TypeError. u"%c" % 0xffffffff now raises an OverflowError instead
   of a ValueError to be consistent with "%c" % 256. See SF patch #710127.
 
 Extension modules
@@ -12193,7 +12193,7 @@ no longer use the default root.
 
 - The interfaces for the bind*() and unbind() widget methods have been
 redesigned; the bind*() methods now return the name of the Tcl command 
-created for the callback, and this can be passed as a optional
+created for the callback, and this can be passed as an optional
 argument to unbind() in order to delete the command (normally, such
 commands are automatically unbound when the widget is destroyed, but
 for some applications this isn't enough).
index 2622999016197b6c3dcdbf4ca0383eb89f1e6753..fbb7603dba331c332b6612d16bb40e0495e1b7b5 100644 (file)
--- a/Misc/NEWS
+++ b/Misc/NEWS
@@ -1324,7 +1324,7 @@ Library
 - Issue #22530: Allow the ``group()`` method of regular expression match objects
   to take a ``long`` as an index.
 
-- Issue #22517: When a io.BufferedRWPair object is deallocated, clear its
+- Issue #22517: When an io.BufferedRWPair object is deallocated, clear its
   weakrefs.
 
 - Issue #10510: distutils register and upload methods now use HTML standards
@@ -2989,7 +2989,7 @@ Core and Builtins
   created with PyFile_FromString().
 
 - Issue #14474: Save and restore exception state in thread.start_new_thread()
-  while writing error message if the thread leaves a unhandled exception.
+  while writing error message if the thread leaves an unhandled exception.
 
 - Issue #13019: Fix potential reference leaks in bytearray.extend().  Patch
   by Suman Saha.
@@ -3965,7 +3965,7 @@ Core and Builtins
 - Issues #12610 and #12609: Verify that user generated AST has correct string
   and identifier types before compiling.
 
-- Issue #11627: Fix segfault when __new__ on a exception returns a
+- Issue #11627: Fix segfault when __new__ on an exception returns a
   non-exception class.
 
 - Issue #12149: Update the method cache after a type's dictionnary gets
@@ -4281,7 +4281,7 @@ Library
 
 - Issue #12502: asyncore: fix polling loop with AF_UNIX sockets.
 
-- Issue #4376: ctypes now supports nested structures in a endian different than
+- Issue #4376: ctypes now supports nested structures in an endian different than
   the parent structure. Patch by Vlad Riscutia.
 
 - Issue #12493: subprocess: Popen.communicate() now also handles EINTR errors
@@ -6697,7 +6697,7 @@ Library
 
 - Issue #7610: Reworked implementation of the internal ``zipfile.ZipExtFile``
   class used to represent files stored inside an archive.  The new
-  implementation is significantly faster and can be wrapped in a
+  implementation is significantly faster and can be wrapped in an
   ``io.BufferedReader`` object for more speedups.  It also solves an issue
   where interleaved calls to ``read()`` and ``readline()`` give wrong results.
   Patch by Nir Aides.
@@ -7952,7 +7952,7 @@ Library
   mulitiprocessing.manager so that users can install custom handlers/etc.
 
 - Issue #3551: Patch multiprocessing to raise a proper exception if the size of
-  the object when writefile is called causes a ERROR_NO_SYSTEM_RESOURCES.  Added
+  the object when writefile is called causes an ERROR_NO_SYSTEM_RESOURCES.  Added
   docs to note the limitation.
 
 - unittest.assertNotEqual() now uses the inequality operator (!=) instead of the
index 3e603fca21cc01486fbcd553be4ed85194f65d17..0867079b5b24825db58489932bdd198a1df5086c 100644 (file)
@@ -953,7 +953,7 @@ dir([object])       localsymbol table. With a module, class or class
                     instanceobject as arg, returns list of names in its attr.
                     dict.
 divmod(a,b)         Returns tuple of (a/b, a%b)
-enumerate(seq)      Return a iterator giving:  (0, seq[0]), (1, seq[1]), ...
+enumerate(seq)      Return an iterator giving:  (0, seq[0]), (1, seq[1]), ...
 eval(s[, globals[,  Eval string s in (optional) globals, locals contexts.s must
 locals]])           have no NUL's or newlines. s can also be acode object.
                     Example: x = 1; incr_x = eval('x + 1')
index 2f7394ef4bfaf82aa649075199ea75ab573866fe..0c72ed29210e320561f81c32d83cf3808109b5cd 100644 (file)
@@ -350,7 +350,7 @@ LASFDE1:
        .set    L$set$3,LUW1-LUW0
        .long   L$set$3
 
-       /* New stack frame based off rbp.  This is a itty bit of unwind
+       /* New stack frame based off rbp.  This is an itty bit of unwind
           trickery in that the CFA *has* changed.  There is no easy way
           to describe it correctly on entry to the function.  Fortunately,
           it doesn't matter too much since at all points we can correctly
index dcd6bc71eaeefb6a00dd43878122b59071209ebd..45a0ed7463ddb11902ca8b653f1f8a6fdc3157e8 100644 (file)
@@ -366,7 +366,7 @@ ffi_closure_unix64:
        .byte   0x4                     /* DW_CFA_advance_loc4 */
        .long   .LUW1-.LUW0
 
-       /* New stack frame based off rbp.  This is a itty bit of unwind
+       /* New stack frame based off rbp.  This is an itty bit of unwind
           trickery in that the CFA *has* changed.  There is no easy way
           to describe it correctly on entry to the function.  Fortunately,
           it doesn't matter too much since at all points we can correctly
index 165d4693a49ab0f87b63294715e64e3688cbbce7..1286d33f83e0acac5482c1c1fed6b0d275e29233 100644 (file)
@@ -351,7 +351,7 @@ LASFDE1:
  .set  L$set$3,LUW1-LUW0
  .long L$set$3
 
- /* New stack frame based off rbp.  This is a itty bit of unwind
+ /* New stack frame based off rbp.  This is an itty bit of unwind
     trickery in that the CFA *has* changed.  There is no easy way
     to describe it correctly on entry to the function.  Fortunately,
     it doesn't matter too much since at all points we can correctly
index 01f457780819bc3e8c6f5a5205ebcb02ca84e4ff..ad336c76c154117292e8ce8beb4758ea6e5389f1 100644 (file)
@@ -730,7 +730,7 @@ _openssl_hash_name_mapper(const OBJ_NAME *openssl_obj_name, void *arg)
     if (openssl_obj_name == NULL)
         return;
     /* Ignore aliased names, they pollute the list and OpenSSL appears to
-     * have its own definition of alias as the resulting list still
+     * have its own definition of alias as the resulting list still
      * contains duplicate and alternate names for several algorithms.     */
     if (openssl_obj_name->alias)
         return;
index 04c444552d943602717c02df7a1d87de5d1a58bc..bbfea71e18a11c3280b39d5c8672d0a398b2c726 100644 (file)
@@ -74,7 +74,7 @@ PyDoc_STRVAR(module_doc,
 "Another IOBase subclass, TextIOBase, deals with the encoding and decoding\n"
 "of streams into text. TextIOWrapper, which extends it, is a buffered text\n"
 "interface to a buffered raw stream (`BufferedIOBase`). Finally, StringIO\n"
-"is a in-memory stream for text.\n"
+"is an in-memory stream for text.\n"
 "\n"
 "Argument names are not part of the specification, and only the arguments\n"
 "of open() are intended to be used as keyword arguments.\n"
index 710ada46e1d3bd6264b1ab6112dadda579a3c05a..5f7b3457adc34ccd9b6d67bbd581456f8efb02d9 100644 (file)
@@ -35,7 +35,7 @@ PyDoc_STRVAR(iobase_doc,
     "Even though IOBase does not declare read, readinto, or write because\n"
     "their signatures will vary, implementations and clients should\n"
     "consider those methods part of the interface. Also, implementations\n"
-    "may raise a IOError when operations they do not support are called.\n"
+    "may raise an IOError when operations they do not support are called.\n"
     "\n"
     "The basic type used for binary data read from or written to a file is\n"
     "the bytes type. Method arguments may also be bytearray or memoryview\n"
index 38bb0d8eff83f9983a91e9b92562017d9e2f3ddc..a95edced392e80b5ab631fd6839d818cf72fd6c4 100644 (file)
@@ -881,8 +881,8 @@ textiowrapper_init(textio *self, PyObject *args, PyObject *kwds)
             if (self->encoding == NULL) {
               catch_ImportError:
                 /*
-                 Importing locale can raise a ImportError because of
-                 _functools, and locale.getpreferredencoding can raise a
+                 Importing locale can raise an ImportError because of
+                 _functools, and locale.getpreferredencoding can raise an
                  ImportError if _locale is not available.  These will happen
                  during module building.
                 */
index e829e4d0d443ac50664190fce70b29081e881131..a4d13753b6185a20098e25573952afca5b8bad2c 100644 (file)
@@ -121,7 +121,7 @@ static PyInt16 _st_ulaw2linear16[256] = {
 
 /*
  * linear2ulaw() accepts a 14-bit signed integer and encodes it as u-law data
- * stored in a unsigned char.  This function should only be called with
+ * stored in an unsigned char.  This function should only be called with
  * the data shifted such that it only contains information in the lower
  * 14-bits.
  *
index 2f2f4f95a3cde2fc213bbeb7091a10036edb0212..999c5c730abd7a26d25695f8b6e2b8dda12f010a 100644 (file)
@@ -21,7 +21,7 @@
  *
  *
  * The Solution:
- * Prefix all exported symbols with "PyExpat_". This is similar to
+ * Prefix all exported symbols with "PyExpat_". This is similar to
  * what Mozilla does for some common libs:
  * http://lxr.mozilla.org/seamonkey/source/modules/libimg/png/mozpngconf.h#115
  *
index 3bb0ac8952d2f35a1193b26c3e2bdeb689a7cf6b..6091a686b104a3c1ddd21e2d88bede400ded33fe 100644 (file)
@@ -1144,7 +1144,7 @@ call_readline(FILE *sys_stdin, FILE *sys_stdout, char *prompt)
         return NULL;
     }
 
-    /* We got an EOF, return a empty string. */
+    /* We got an EOF, return an empty string. */
     if (p == NULL) {
         p = PyMem_Malloc(1);
         if (p != NULL)
index 3a50b7364d620d7fc0a4204aab83f14ddc1f12d7..2cb34b74014c093c0ddcad9143cf23d800937dcf 100644 (file)
@@ -1641,7 +1641,7 @@ PyNumber_Int(PyObject *o)
         }
         return res;
     }
-    if (PyInt_Check(o)) { /* A int subclass without nb_int */
+    if (PyInt_Check(o)) { /* An int subclass without nb_int */
         PyIntObject *io = (PyIntObject*)o;
         return PyInt_FromLong(io->ob_ival);
     }
index 057900d98057d5ff64ecb066f795fd0a9c16a370..44c82e4594ff6992ab958449d8b737d3da1b81b9 100644 (file)
@@ -148,7 +148,7 @@ msvcrt_get_osfhandle(PyObject *self, PyObject *args)
     if (handle == -1)
         return PyErr_SetFromErrno(PyExc_IOError);
 
-    /* technically 'handle' is not a pointer, but a integer as
+    /* technically 'handle' is not a pointer, but an integer as
        large as a pointer, Python's *VoidPtr interface is the
        most appropriate here */
     return PyLong_FromVoidPtr((void*)handle);
index bf2e4862d618ea5b09a22a11a77d026ac3d40e56..613da647ac732480fab7ef0aad0228c25ec77460 100644 (file)
@@ -102,7 +102,7 @@ ifeq ($(FIXED_PYHOME),yes)
   CFLAGS+=     -DPREFIX=$(DQUOTE)$(LIB_DIR)$(DQUOTE)
 endif
 
-# We're using the OMF format since EMX's ld has a obscure bug
+# We're using the OMF format since EMX's ld has an obscure bug
 # because of which it sometimes fails to build relocations
 # in .data segment that point to another .data locations
 # (except for the final linking if the .EXEs)
index c54670dfeb0001b2c4c3f263a07ea45f6a49cd43..3b69f961a4cb0e4068ba5c92c865538e4ee0459b 100644 (file)
@@ -50,7 +50,7 @@
    threads.
 
    This is valid for HP-UX 11.23 running on an ia64 system. If needed, add
-   a check of __ia64 to verify that we're running on a ia64 system instead
+   a check of __ia64 to verify that we're running on an ia64 system instead
    of a pa-risc system.
 */
 #ifdef __hpux
index b3032f8dcaf6275ea7192c64ec59bfef3e478fa1..523c8364d1789b365b17b77baab0d61389aabb57 100644 (file)
@@ -733,7 +733,7 @@ _Validation_records = [
 (u'CustomAction',u'Source',u'Y',None, None, None, None, u'CustomSource',None, u'The table reference of the source of the code.',),
 (u'CustomAction',u'Target',u'Y',None, None, None, None, u'Formatted',None, u'Execution parameter, depends on the type of custom action',),
 (u'DrLocator',u'Signature_',u'N',None, None, None, None, u'Identifier',None, u'The Signature_ represents a unique file signature and is also the foreign key in the Signature table.',),
-(u'DrLocator',u'Path',u'Y',None, None, None, None, u'AnyPath',None, u'The path on the user system. This is either a subpath below the value of the Parent or a full path. The path may contain properties enclosed within [ ] that will be expanded.',),
+(u'DrLocator',u'Path',u'Y',None, None, None, None, u'AnyPath',None, u'The path on the user system. This is either a subpath below the value of the Parent or a full path. The path may contain properties enclosed within [ ] that will be expanded.',),
 (u'DrLocator',u'Depth',u'Y',0,32767,None, None, None, None, u'The depth below the path to which the Signature_ is recursively searched. If absent, the depth is assumed to be 0.',),
 (u'DrLocator',u'Parent',u'Y',None, None, None, None, u'Identifier',None, u'The parent file signature. It is also a foreign key in the Signature table. If null and the Path column does not expand to a full path, then all the fixed drives of the user system are searched using the Path.',),
 (u'DuplicateFile',u'File_',u'N',None, None, u'File',1,u'Identifier',None, u'Foreign key referencing the source file to be duplicated.',),
index 456d9ae7bb668b9f108d932b618469c05fff22bd..d6c256bb72effa6146ff1e7462416fbc05d35579 100644 (file)
@@ -998,7 +998,7 @@ _Validation = [
 (u'CustomAction', u'Source', u'Y', None, None, None, None, u'CustomSource', None, u'The table reference of the source of the code.'),
 (u'CustomAction', u'Target', u'Y', None, None, None, None, u'Formatted', None, u'Execution parameter, depends on the type of custom action'),
 (u'DrLocator', u'Signature_', u'N', None, None, None, None, u'Identifier', None, u'The Signature_ represents a unique file signature and is also the foreign key in the Signature table.'),
-(u'DrLocator', u'Path', u'Y', None, None, None, None, u'AnyPath', None, u'The path on the user system. This is either a subpath below the value of the Parent or a full path. The path may contain properties enclosed within [ ] that will be expanded.'),
+(u'DrLocator', u'Path', u'Y', None, None, None, None, u'AnyPath', None, u'The path on the user system. This is either a subpath below the value of the Parent or a full path. The path may contain properties enclosed within [ ] that will be expanded.'),
 (u'DrLocator', u'Depth', u'Y', 0, 32767, None, None, None, None, u'The depth below the path to which the Signature_ is recursively searched. If absent, the depth is assumed to be 0.'),
 (u'DrLocator', u'Parent', u'Y', None, None, None, None, u'Identifier', None, u'The parent file signature. It is also a foreign key in the Signature table. If null and the Path column does not expand to a full path, then all the fixed drives of the user system are searched using the Path.'),
 (u'DuplicateFile', u'File_', u'N', None, None, u'File', 1, u'Identifier', None, u'Foreign key referencing the source file to be duplicated.'),