]> granicus.if.org Git - python/commitdiff
Issue #26778: Fixed "a/an/and" typos in code comment and documentation.
authorSerhiy Storchaka <storchaka@gmail.com>
Sun, 17 Apr 2016 06:37:36 +0000 (09:37 +0300)
committerSerhiy Storchaka <storchaka@gmail.com>
Sun, 17 Apr 2016 06:37:36 +0000 (09:37 +0300)
72 files changed:
Demo/tix/samples/Balloon.py
Demo/tix/samples/CmpImg.py
Doc/c-api/object.rst
Doc/c-api/set.rst
Doc/c-api/unicode.rst
Doc/distutils/apiref.rst
Doc/howto/urllib2.rst
Doc/library/ctypes.rst
Doc/library/fl.rst
Doc/library/idle.rst
Doc/library/marshal.rst
Doc/library/pyexpat.rst
Doc/library/restricted.rst
Doc/library/sgmllib.rst
Doc/library/sunaudio.rst
Doc/library/tarfile.rst
Doc/library/tix.rst
Doc/library/urllib.rst
Doc/tutorial/datastructures.rst
Doc/tutorial/introduction.rst
Doc/whatsnew/2.2.rst
Doc/whatsnew/2.3.rst
Include/listobject.h
Lib/SocketServer.py
Lib/_pyio.py
Lib/calendar.py
Lib/decimal.py
Lib/difflib.py
Lib/distutils/cygwinccompiler.py
Lib/getopt.py
Lib/idlelib/AutoComplete.py
Lib/idlelib/Debugger.py
Lib/idlelib/WidgetRedirector.py
Lib/idlelib/configDialog.py
Lib/lib-tk/Tix.py
Lib/lib-tk/Tkdnd.py
Lib/lib-tk/Tkinter.py
Lib/lib-tk/test/test_ttk/test_functions.py
Lib/lib-tk/ttk.py
Lib/lib2to3/fixer_base.py
Lib/lib2to3/refactor.py
Lib/mailbox.py
Lib/multiprocessing/managers.py
Lib/optparse.py
Lib/plat-irix5/flp.py
Lib/plat-irix6/flp.py
Lib/plat-mac/lib-scriptpackages/Finder/Files.py
Lib/plat-mac/lib-scriptpackages/SystemEvents/Processes_Suite.py
Lib/socket.py
Lib/sqlite3/test/factory.py
Lib/sqlite3/test/regression.py
Lib/test/test_binop.py
Lib/test/test_cmd.py
Lib/test/test_codecs.py
Lib/test/test_doctest.py
Lib/test/test_extcall.py
Lib/test/test_mutants.py
Lib/test/test_sys.py
Lib/test/test_threading.py
Lib/xmlrpclib.py
Mac/Demo/applescript/Disk_Copy/Special_Events.py
Misc/HISTORY
Modules/_csv.c
Modules/_ctypes/_ctypes.c
Modules/cPickle.c
Objects/bytearrayobject.c
Objects/stringlib/string_format.h
PC/_winreg.c
Python/thread_nt.h
Python/thread_wince.h
Tools/gdb/libpython.py
Tools/msi/msi.py

index 229590570b35bea543616d752b518fe5406cff23..576b4ed5811dd4d3c6f8fe47fd05b22087877293 100644 (file)
@@ -11,7 +11,7 @@
 # program.
 
 # This file demonstrates the use of the tixBalloon widget, which provides
-# a interesting way to give help tips about elements in your user interface.
+# an interesting way to give help tips about elements in your user interface.
 # Your can display the help message in a "balloon" and a status bar widget.
 #
 
index 4720a10ccf98f07fbb1779340fc8fdff09e94e3d..8b335796d5ce20d6e234c24a6945ff0002845ab3 100644 (file)
@@ -155,7 +155,7 @@ def RunSample(w):
     net = Tix.Button(w, padx=4, pady=1, width=120)
 
     # Create the first image: we create a line, then put a string,
-    # a space and a image into this line, from left to right.
+    # a space and an image into this line, from left to right.
     # The result: we have a one-line image that consists of three
     # individual items
     #
index 50b83e90d226652b3112380a38f561c2612681b6..1f0bd17194856551dc3fa4956fdacb6064c5688d 100644 (file)
@@ -157,7 +157,7 @@ Object Protocol
 
    .. index:: builtin: bytes
 
-   Compute a bytes representation of object *o*.  In 2.x, this is just a alias
+   Compute a bytes representation of object *o*.  In 2.x, this is just an alias
    for :c:func:`PyObject_Str`.
 
 
index 258530b1957cac3b64af5cc462af7af5cd44b87c..f6ebcf339227d13c233262fbc9c8c68e5e89b424 100644 (file)
@@ -140,7 +140,7 @@ or :class:`frozenset` or instances of their subtypes.
    Add *key* to a :class:`set` instance.  Does not apply to :class:`frozenset`
    instances.  Return 0 on success or -1 on failure. Raise a :exc:`TypeError` if
    the *key* is unhashable. Raise a :exc:`MemoryError` if there is no room to grow.
-   Raise a :exc:`SystemError` if *set* is an not an instance of :class:`set` or its
+   Raise a :exc:`SystemError` if *set* is not an instance of :class:`set` or its
    subtype.
 
    .. versionchanged:: 2.6
@@ -158,7 +158,7 @@ subtypes but not for instances of :class:`frozenset` or its subtypes.
    error is encountered.  Does not raise :exc:`KeyError` for missing keys.  Raise a
    :exc:`TypeError` if the *key* is unhashable.  Unlike the Python :meth:`~set.discard`
    method, this function does not automatically convert unhashable sets into
-   temporary frozensets. Raise :exc:`PyExc_SystemError` if *set* is an not an
+   temporary frozensets. Raise :exc:`PyExc_SystemError` if *set* is not an
    instance of :class:`set` or its subtype.
 
 
@@ -166,7 +166,7 @@ subtypes but not for instances of :class:`frozenset` or its subtypes.
 
    Return a new reference to an arbitrary object in the *set*, and removes the
    object from the *set*.  Return *NULL* on failure.  Raise :exc:`KeyError` if the
-   set is empty. Raise a :exc:`SystemError` if *set* is an not an instance of
+   set is empty. Raise a :exc:`SystemError` if *set* is not an instance of
    :class:`set` or its subtype.
 
 
index 3262354d0121fbfa9e389d57c461468a5a7aa823..85800c5e5f82d1d4a2209383356b8dd826a020c7 100644 (file)
@@ -260,7 +260,7 @@ APIs:
    | :attr:`%%`        | *n/a*               | The literal % character.       |
    +-------------------+---------------------+--------------------------------+
    | :attr:`%c`        | int                 | A single character,            |
-   |                   |                     | represented as an C int.       |
+   |                   |                     | represented as a C int.        |
    +-------------------+---------------------+--------------------------------+
    | :attr:`%d`        | int                 | Exactly equivalent to          |
    |                   |                     | ``printf("%d")``.              |
index 96a486b623555ea1a53721c2f15141f0538e20a0..d33eab65806defceb3aa8e561cbd26e06b8cdc69 100644 (file)
@@ -832,7 +832,7 @@ selection by :class:`MSVCCompiler`.
 .. module:: distutils.bcppcompiler
 
 
-This module provides :class:`BorlandCCompiler`, an subclass of the abstract
+This module provides :class:`BorlandCCompiler`, a subclass of the abstract
 :class:`CCompiler` class for the Borland C++ compiler.
 
 
index 42e84d3fb64c523c4303f10e98549d4f93177f9f..3cac99300019bb2b6d452acec573bd2e13d677f1 100644 (file)
@@ -6,7 +6,7 @@
 
 .. note::
 
-    There is an French translation of an earlier revision of this
+    There is a French translation of an earlier revision of this
     HOWTO, available at `urllib2 - Le Manuel manquant
     <http://www.voidspace.org.uk/python/articles/urllib2_francais.shtml>`_.
 
index e58d95427db54bd21ba147c0cae9dc15385e73d5..cbf0e35037b8550357503e67450b25853a1af813 100644 (file)
@@ -657,7 +657,7 @@ positive integer::
 
    TenPointsArrayType = POINT * 10
 
-Here is an example of an somewhat artificial data type, a structure containing 4
+Here is an example of a somewhat artificial data type, a structure containing 4
 POINTs among other stuff::
 
    >>> from ctypes import *
@@ -1576,7 +1576,7 @@ They are instances of a private class:
       tuple, this method allows adapting the actual argument to an object that
       the foreign function accepts.  For example, a :class:`c_char_p` item in
       the :attr:`argtypes` tuple will convert a unicode string passed as
-      argument into an byte string using ctypes conversion rules.
+      argument into a byte string using ctypes conversion rules.
 
       New: It is now possible to put items in argtypes which are not ctypes
       types, but each item must have a :meth:`from_param` method which returns a
@@ -1964,7 +1964,7 @@ Utility functions
 .. function:: POINTER(type)
 
    This factory function creates and returns a new ctypes pointer type. Pointer
-   types are cached an reused internally, so calling this function repeatedly is
+   types are cached and reused internally, so calling this function repeatedly is
    cheap. *type* must be a ctypes type.
 
 
index c6893729b23418ee163130df437b7d72a30d890a..b7551348d8e481fe573039a442ae60f538e61272 100644 (file)
@@ -310,7 +310,7 @@ here.
 
 .. method:: form.add_input(type, x, y, w, h, name)
 
-   Add a input object to the form.  ---  Methods: :meth:`set_input`,
+   Add an input object to the form.  ---  Methods: :meth:`set_input`,
    :meth:`get_input`, :meth:`set_input_color`, :meth:`set_input_return`.
 
 
index 4384d56814e1e61ff0972c0f19c7d52b7a84639a..df08fe8b5b12ee50575c9ae5e62a2efd4dda83c6 100644 (file)
@@ -128,7 +128,7 @@ Find Selection
    Search for the currently selected string, if there is one.
 
 Find in Files...
-   Open a file search dialog.  Put results in an new output window.
+   Open a file search dialog.  Put results in a new output window.
 
 Replace...
    Open a search-and-replace dialog.
index f4dfc1f04ff7af36564b68bbf07320749e0da2a9..0698834a4700d86aa796b7ee894d6dfae5a767be 100644 (file)
@@ -66,7 +66,7 @@ The module defines these functions:
 .. function:: dump(value, file[, version])
 
    Write the value on the open file.  The value must be a supported type.  The
-   file must be a open file object such as ``sys.stdout`` or returned by
+   file must be an open file object such as ``sys.stdout`` or returned by
    :func:`open` or :func:`os.popen`.  It may not be a wrapper such as
    TemporaryFile on Windows. It must be opened in binary mode (``'wb'``
    or ``'w+b'``).
index 0c8e7fc2a6774a685e4799c1895b5906cecacecb..f0b6bc36323f22bf56dbb75a081eea48e0eedc7f 100644 (file)
@@ -788,7 +788,7 @@ The ``errors`` object has the following attributes:
 .. data:: XML_ERROR_UNDEFINED_ENTITY
    :noindex:
 
-   A reference was made to a entity which was not defined.
+   A reference was made to an entity which was not defined.
 
 
 .. data:: XML_ERROR_UNKNOWN_ENCODING
index a40d1e9515f09dfddec364a7b12a0f4b57b1917d..80f6344b9694fe124b2556b9d8f28f4f81ee1482 100644 (file)
@@ -34,7 +34,7 @@ the built-in :func:`open` function so that it raises an exception whenever the
 *mode* parameter is ``'w'``.  It might also perform a :c:func:`chroot`\ -like
 operation on the *filename* parameter, such that root is always relative to some
 safe "sandbox" area of the filesystem.  In this case, the untrusted code would
-still see an built-in :func:`open` function in its environment, with the same
+still see a built-in :func:`open` function in its environment, with the same
 calling interface.  The semantics would be identical too, with :exc:`IOError`\ s
 being raised when the supervisor determined that an unallowable parameter is
 being used.
index 84911fec3e79f49bc73f871834b13bacaf08f219..bffd535c566a0380e64d60d51177a98cad3641f7 100644 (file)
@@ -162,7 +162,7 @@ A single exception is defined as well:
 .. method:: SGMLParser.handle_entityref(ref)
 
    This method is called to process a general entity reference of the form
-   ``&ref;`` where *ref* is an general entity reference.  It converts *ref* by
+   ``&ref;`` where *ref* is a general entity reference.  It converts *ref* by
    passing it to :meth:`convert_entityref`.  If a translation is returned, it calls
    the method :meth:`handle_data` with the translation; otherwise, it calls the
    method ``unknown_entityref(ref)``. The default :attr:`entitydefs` defines
index 187204e9e4bae495370d18ad11301a6c0f6456a1..f09a4d6f17178ffb9dfc6be549ae67e7faed2833 100644 (file)
@@ -123,7 +123,7 @@ methods (except ``control`` objects which only provide :meth:`getinfo`,
 .. method:: audio device.setinfo(status)
 
    This method sets the audio device status parameters. The *status* parameter is
-   an device status object as returned by :func:`getinfo` and possibly modified by
+   a device status object as returned by :func:`getinfo` and possibly modified by
    the program.
 
 
index e3d006e54264dafc68b023e0a2e8fadd58663776..ba4b3e0a844cadc05a9d3962f8cce967dfcc3cc8 100644 (file)
@@ -110,10 +110,10 @@ Some facts and figures:
    +-------------+--------------------------------------------+
    | ``'w|'``    | Open an uncompressed *stream* for writing. |
    +-------------+--------------------------------------------+
-   | ``'w|gz'``  | Open an gzip compressed *stream* for       |
+   | ``'w|gz'``  | Open a gzip compressed *stream* for        |
    |             | writing.                                   |
    +-------------+--------------------------------------------+
-   | ``'w|bz2'`` | Open an bzip2 compressed *stream* for      |
+   | ``'w|bz2'`` | Open a bzip2 compressed *stream* for       |
    |             | writing.                                   |
    +-------------+--------------------------------------------+
 
index a2f31a09779b1ca82680119ed3e8f2f8edbf47ac..8626cd815838d07a3d37165319e073de7e5b1e89 100644 (file)
@@ -276,7 +276,7 @@ File Selectors
 
    The `ExFileSelectBox
    <http://tix.sourceforge.net/dist/current/man/html/TixCmd/tixExFileSelectBox.htm>`_
-   widget is usually embedded in a tixExFileSelectDialog widget. It provides an
+   widget is usually embedded in a tixExFileSelectDialog widget. It provides a
    convenient method for the user to select files. The style of the
    :class:`ExFileSelectBox` widget is very similar to the standard file dialog on
    MS Windows 3.1.
index 927696ae5f4bd053945753c0cfde774114be1f99..91deb396dd0761541edaf1446a60a0d749708e2a 100644 (file)
@@ -280,7 +280,7 @@ Utility functions
 
 .. function:: url2pathname(path)
 
-   Convert the path component *path* from an percent-encoded URL to the local syntax for a
+   Convert the path component *path* from a percent-encoded URL to the local syntax for a
    path.  This does not accept a complete URL.  This function uses :func:`unquote`
    to decode *path*.
 
index 48faa9cc436a36000380f94575ac1b9e3ac1b84b..0e5891ada9e4a32647f3aaaa4dbf34314e2cfa03 100644 (file)
@@ -452,7 +452,7 @@ objects, such as lists.
 
 Though tuples may seem similar to lists, they are often used in different
 situations and for different purposes.
-Tuples are :term:`immutable`, and usually contain an heterogeneous sequence of
+Tuples are :term:`immutable`, and usually contain a heterogeneous sequence of
 elements that are accessed via unpacking (see later in this section) or indexing
 (or even by attribute in the case of :func:`namedtuples <collections.namedtuple>`).
 Lists are :term:`mutable`, and their elements are usually homogeneous and are
index 40c0201a1a5d29dcd8de3eeb2469c5ec85d15400..a4fb70c89d75bb6a612bfc12c5a5fdaa1bc03abf 100644 (file)
@@ -307,7 +307,7 @@ For non-negative indices, the length of a slice is the difference of the
 indices, if both are within bounds.  For example, the length of ``word[1:3]`` is
 2.
 
-Attempting to use a index that is too large will result in an error::
+Attempting to use an index that is too large will result in an error::
 
    >>> word[42]  # the word only has 6 characters
    Traceback (most recent call last):
index 421846de1111c3d39132321cb1ee0fefc91b8380..212ed04fa22ffd833a364135c83a44e9f19ffeb0 100644 (file)
@@ -720,7 +720,7 @@ possible types of the operands.
 
 (The controversy is over whether this is *really* a design flaw, and whether
 it's worth breaking existing code to fix this.  It's caused endless discussions
-on python-dev, and in July 2001 erupted into an storm of acidly sarcastic
+on python-dev, and in July 2001 erupted into a storm of acidly sarcastic
 postings on :newsgroup:`comp.lang.python`. I won't argue for either side here
 and will stick to describing what's  implemented in 2.2.  Read :pep:`238` for a
 summary of arguments and counter-arguments.)
index 5db3e2489e2366b9324fd25a9aa7fc843366e5ac..f9c4547a5f6af76e13ccfeb43c3fc9fed878a52f 100644 (file)
@@ -411,7 +411,7 @@ PEP 279: enumerate()
 
 A new built-in function, :func:`enumerate`, will make certain loops a bit
 clearer.  ``enumerate(thing)``, where *thing* is either an iterator or a
-sequence, returns a iterator that will return ``(0, thing[0])``, ``(1,
+sequence, returns an iterator that will return ``(0, thing[0])``, ``(1,
 thing[1])``, ``(2, thing[2])``, and so forth.
 
 A common idiom to change every element of a list looks like this::
index 7cd616ba0f4b1286a597935d39f1554c4a25dec9..f19b1c5e56c691be122423a10be57f3c7fc4e403 100644 (file)
@@ -2,7 +2,7 @@
 /* List object interface */
 
 /*
-Another generally useful object type is an list of object pointers.
+Another generally useful object type is a list of object pointers.
 This is a mutable type: the list items can be changed, and items can be
 added or removed.  Out-of-range indices or non-list objects are ignored.
 
index d324a21c1b8e9237160a47540d418e467c4213d4..122430e362dfad64abbaa0962be52a200c47b4eb 100644 (file)
@@ -707,7 +707,7 @@ class StreamRequestHandler(BaseRequestHandler):
             try:
                 self.wfile.flush()
             except socket.error:
-                # An final socket error may have occurred here, such as
+                # A final socket error may have occurred here, such as
                 # the local error ECONNABORTED.
                 pass
         self.wfile.close()
index 694b778cc5b37db3863424d80399a3906b7f9eb5..d8e1ee78183dfa7099140ed6adfbce6b468e83a9 100644 (file)
@@ -420,7 +420,7 @@ class IOBase:
         return self.__closed
 
     def _checkClosed(self, msg=None):
-        """Internal: raise an ValueError if file is closed
+        """Internal: raise a ValueError if file is closed
         """
         if self.closed:
             raise ValueError("I/O operation on closed file."
@@ -2022,7 +2022,7 @@ class StringIO(TextIOWrapper):
 
     def __repr__(self):
         # TextIOWrapper tells the encoding in its repr. In StringIO,
-        # that's a implementation detail.
+        # that's an implementation detail.
         return object.__repr__(self)
 
     @property
index d3bd2362e93480e6e2182c2e15b654f8019614f4..4c95a493474014fd0f6588f8976b6dfa00bb880f 100644 (file)
@@ -142,7 +142,7 @@ class Calendar(object):
 
     def iterweekdays(self):
         """
-        Return a iterator for one week of weekday numbers starting with the
+        Return an iterator for one week of weekday numbers starting with the
         configured first one.
         """
         for i in range(self.firstweekday, self.firstweekday + 7):
index d274552cd2493c43b4d3e0822aded54a1c861a73..20d9468bf8aa5b9574075978515858fb6ca5e9cb 100644 (file)
@@ -224,7 +224,7 @@ class InvalidOperation(DecimalException):
 class ConversionSyntax(InvalidOperation):
     """Trying to convert badly formed string.
 
-    This occurs and signals invalid-operation if an string is being
+    This occurs and signals invalid-operation if a string is being
     converted to a number and it does not conform to the numeric string
     syntax.  The result is [0,qNaN].
     """
index 3880d8472eac628c3537d877aab7b110b8a24556..1c6fbdbedcb7dc1d74d8bfb99d0971d2175321a1 100644 (file)
@@ -1487,7 +1487,7 @@ def _mdiff(fromlines, tolines, context=None, linejunk=None,
                 yield _make_line(lines,'-',0), None, True
                 continue
             elif s.startswith(('--?+', '--+', '- ')):
-                # in delete block and see a intraline change or unchanged line
+                # in delete block and see an intraline change or unchanged line
                 # coming: yield the delete line and then blanks
                 from_line,to_line = _make_line(lines,'-',0), None
                 num_blanks_to_yield,num_blanks_pending = num_blanks_pending-1,0
index 5d116876a3333a68cf0bebe6332d95d8baaa2250..c72a2495955482ff0ace29e2218e8b1171ca46db 100644 (file)
@@ -10,9 +10,9 @@ cygwin in no-cygwin mode).
 #
 # * if you use a msvc compiled python version (1.5.2)
 #   1. you have to insert a __GNUC__ section in its config.h
-#   2. you have to generate a import library for its dll
+#   2. you have to generate an import library for its dll
 #      - create a def-file for python??.dll
-#      - create a import library using
+#      - create an import library using
 #             dlltool --dllname python15.dll --def python15.def \
 #                       --output-lib libpython15.a
 #
index 251d89c5cfe9ad9c11768377c86140243d9f92ee..084aadb52a0cc1a9800958b4d6f1617fd2dd9138 100644 (file)
@@ -28,7 +28,7 @@ option involved with the exception.
 # - RETURN_IN_ORDER option
 # - GNU extension with '-' as first character of option string
 # - optional arguments, specified by double colons
-# - a option string with a W followed by semicolon should
+# - an option string with a W followed by semicolon should
 #   treat "-W foo" as "--foo"
 
 __all__ = ["GetoptError","error","getopt","gnu_getopt"]
index 1248f000eab3480c598542e77aab002fe9f94c3a..5a90d424b6a30e6d1864600d16f04f3ce59e25df 100644 (file)
@@ -67,7 +67,7 @@ class AutoComplete:
 
     def try_open_completions_event(self, event):
         """Happens when it would be nice to open a completion list, but not
-        really necessary, for example after an dot, so function
+        really necessary, for example after a dot, so function
         calls won't be made.
         """
         lastchar = self.text.get("insert-1c")
index 7fbe4a7d199d6704ef98aa26d4c425bc7ad68e63..c517065912470650140ff154bc302d2e62542daf 100644 (file)
@@ -373,7 +373,7 @@ class StackViewer(ScrolledList):
     def __init__(self, master, flist, gui):
         if macosxSupport.isAquaTk():
             # At least on with the stock AquaTk version on OSX 10.4 you'll
-            # get an shaking GUI that eventually kills IDLE if the width
+            # get a shaking GUI that eventually kills IDLE if the width
             # argument is specified.
             ScrolledList.__init__(self, master)
         else:
index 2cb939882bc08ee32719b8c6ed484091f2f9f2ea..54431f7382536bb91fdc6022d30e3e7027590de5 100644 (file)
@@ -68,7 +68,7 @@ class WidgetRedirector:
         '''Return OriginalCommand(operation) after registering function.
 
         Registration adds an operation: function pair to ._operations.
-        It also adds an widget function attribute that masks the Tkinter
+        It also adds a widget function attribute that masks the Tkinter
         class instance method.  Method masking operates independently
         from command dispatch.
 
index 585a87148780d11730c7d9794f2df0bc83ca7288..671882b18d8f111562f14d3f79a80301b416903c 100644 (file)
@@ -1213,7 +1213,7 @@ class ConfigDialog(Toplevel):
 
         All values are treated as text, and it is up to the user to supply
         reasonable values. The only exception to this are the 'enable*' options,
-        which are boolean, and can be toggled with an True/False button.
+        which are boolean, and can be toggled with a True/False button.
         """
         parent = self.parent
         frame = self.tabPages.pages['Extensions'].frame
index 1f28e56f74054b166e36c7cac6c543cd1826dff2..d723e47448ec2194d9fe5d5625cd517bb1d05547 100644 (file)
@@ -221,7 +221,7 @@ class Tk(Tkinter.Tk, tixCommand):
         self.tk.eval('package require Tix')
 
     def destroy(self):
-        # For safety, remove an delete_window binding before destroy
+        # For safety, remove the delete_window binding before destroy
         self.protocol("WM_DELETE_WINDOW", "")
         Tkinter.Tk.destroy(self)
 
@@ -702,7 +702,7 @@ class DirSelectBox(TixWidget):
 
 class ExFileSelectBox(TixWidget):
     """ExFileSelectBox - MS Windows style file select box.
-    It provides an convenient method for the user to select files.
+    It provides a convenient method for the user to select files.
 
     Subwidget       Class
     ---------       -----
@@ -760,7 +760,7 @@ class DirSelectDialog(TixWidget):
 # Should inherit from a Dialog class
 class ExFileSelectDialog(TixWidget):
     """ExFileSelectDialog - MS Windows style file select dialog.
-    It provides an convenient method for the user to select files.
+    It provides a convenient method for the user to select files.
 
     Subwidgets       Class
     ----------       -----
index 2e37d9ec3952e1037bea384e6594a5b25bccad6a..1b09f91cfd1332c7b37682b9fac38b3c6d922e90 100644 (file)
@@ -3,7 +3,7 @@
 This is very preliminary.  I currently only support dnd *within* one
 application, between different windows (or within the same window).
 
-I an trying to make this as generic as possible -- not dependent on
+I am trying to make this as generic as possible -- not dependent on
 the use of a particular widget or icon type, etc.  I also hope that
 this will work with Pmw.
 
index d8d5b80a025aa5f502b99f21b62e5c0d5b0d2350..79448190f2e8e13efe070e12c2b8178aef9be9c0 100644 (file)
@@ -2778,7 +2778,7 @@ class Menu(Widget):
                     self.deletecommand(c)
         self.tk.call(self._w, 'delete', index1, index2)
     def entrycget(self, index, option):
-        """Return the resource value of an menu item for OPTION at INDEX."""
+        """Return the resource value of a menu item for OPTION at INDEX."""
         return self.tk.call(self._w, 'entrycget', index, '-' + option)
     def entryconfigure(self, index, cnf=None, **kw):
         """Configure a menu item at INDEX."""
index 714d95000176d0daa3bcf677ff204965738ea57f..ea3f81c2209d42a9685105c8d647de1a2d21463d 100644 (file)
@@ -195,7 +195,7 @@ class InternalFunctionsTest(unittest.TestCase):
 
         ## Testing type = vsapi
         # vsapi type expects at least a class name and a part_id, so this
-        # should raise an ValueError since it tries to get two elements from
+        # should raise a ValueError since it tries to get two elements from
         # an empty tuple
         self.assertRaises(ValueError, ttk._format_elemcreate, 'vsapi')
 
index 08cb040bd9587daedded7945d1f67cd36a383f16..fe73aef95cb722f42caef3238e281bacabf6c5c1 100644 (file)
@@ -291,7 +291,7 @@ def _val_or_dict(tk, options, *args):
     """Format options then call Tk command with args and options and return
     the appropriate result.
 
-    If no option is specified, a dict is returned. If a option is
+    If no option is specified, a dict is returned. If an option is
     specified with the None value, the value for that option is returned.
     Otherwise, the function just sets the passed options and the caller
     shouldn't be expecting a return value anyway."""
@@ -1476,7 +1476,7 @@ class LabeledScale(Frame, object):
     can be accessed through instance.label"""
 
     def __init__(self, master=None, variable=None, from_=0, to=10, **kw):
-        """Construct an horizontal LabeledScale with parent master, a
+        """Construct a horizontal LabeledScale with parent master, a
         variable to be associated with the Ttk Scale widget and its range.
         If variable is not specified, a Tkinter.IntVar is created.
 
index f6421ba3f74fddb5a1ca137a27392e4bf0e5e381..d437b96a29d629cf27fc72ed63214af17141fd6b 100644 (file)
@@ -50,7 +50,7 @@ class BaseFix(object):
         """Initializer.  Subclass may override.
 
         Args:
-            options: an dict containing the options passed to RefactoringTool
+            options: a dict containing the options passed to RefactoringTool
             that could be used to customize the fixer through the command line.
             log: a list to append warnings and other messages to.
         """
index bd238978b4e5f3fd419228106be9a2c33408b44f..98386c5f310d9f5ddf872b7c278dad3a35931a03 100644 (file)
@@ -184,7 +184,7 @@ class RefactoringTool(object):
 
         Args:
             fixer_names: a list of fixers to import
-            options: an dict with configuration.
+            options: a dict with configuration.
             explicit: a list of fixers to run even if they are explicit.
         """
         self.fixers = fixer_names
index 3866953ec584c643d9de388c5209cf61691782e0..b1e5faafe9d7636c604a66861d6d8b0b8ca323a2 100644 (file)
@@ -1774,7 +1774,7 @@ class BabylMessage(Message):
     """Message with Babyl-specific properties."""
 
     def __init__(self, message=None):
-        """Initialize an BabylMessage instance."""
+        """Initialize a BabylMessage instance."""
         self._labels = []
         self._visible = Message()
         Message.__init__(self, message)
index 08d35d868285c151f1c1a1a4b060d9af2db19cf1..77639653ab86c7038b1f0c1622c1e512dea5d72c 100644 (file)
@@ -884,7 +884,7 @@ def RebuildProxy(func, token, serializer, kwds):
 
 def MakeProxyType(name, exposed, _cache={}):
     '''
-    Return an proxy type whose methods are given by `exposed`
+    Return a proxy type whose methods are given by `exposed`
     '''
     exposed = tuple(exposed)
     try:
index 433276d944b99bc844261e0a1fecf2dcebc94b99..f8c70dd85e0425a620d3c25807becdc30e166884 100644 (file)
@@ -1375,7 +1375,7 @@ class OptionParser (OptionContainer):
         sys.argv[1:]).  Any errors result in a call to 'error()', which
         by default prints the usage message to stderr and calls
         sys.exit() with an error message.  On success returns a pair
-        (values, args) where 'values' is an Values instance (with all
+        (values, args) where 'values' is a Values instance (with all
         your option values) and 'args' is the list of arguments left
         over after parsing options.
         """
index 13c926f3ad73fc959293f9354ad0cce534b97e15..f06e7f8d90f407b81083baea9997c5be5c910659 100644 (file)
@@ -329,7 +329,7 @@ def _parse_object(file):
 #################################################################
 
 #
-# External - Create a form an link to an instance variable.
+# External - Create a form and link to an instance variable.
 #
 def create_full_form(inst, (fdata, odatalist)):
     form = create_form(fdata)
index 32e8b9d27df4594698bccc7acf822dcdc6447183..14231cb79125df46da8db91080ccee6590b7c251 100644 (file)
@@ -328,7 +328,7 @@ def _parse_object(file):
 #################################################################
 
 #
-# External - Create a form an link to an instance variable.
+# External - Create a form and link to an instance variable.
 #
 def create_full_form(inst, (fdata, odatalist)):
     form = create_form(fdata)
index ddbe1bafbb1558b17c34395e5f9d8212a7ddc007..0afdc04a258f4fd6b825a3a828c8ffeb29f38e4f 100644 (file)
@@ -102,7 +102,7 @@ class _Prop_version(aetools.NProperty):
 files = file
 
 class internet_location_file(aetools.ComponentItem):
-    """internet location file - An file containing an internet location """
+    """internet location file - A file containing an internet location """
     want = 'inlf'
 class _Prop_location(aetools.NProperty):
     """location - the internet location """
index 9dcb85fb2f9a5cd1622d6b223caadf21905fccb6..ff7be3c087112f48f508f7fb4253c8964740d4c5 100644 (file)
@@ -58,7 +58,7 @@ class _Prop_application_file(aetools.NProperty):
 application_processes = application_process
 
 class desk_accessory_process(aetools.ComponentItem):
-    """desk accessory process - A process launched from an desk accessory file """
+    """desk accessory process - A process launched from a desk accessory file """
     want = 'pcda'
 class _Prop_desk_accessory_file(aetools.NProperty):
     """desk accessory file - a reference to the desk accessory file from which this process was launched """
index 614af290d1078233513ebce19bd5e537d52390f1..437634cc3b58ce953c2a5ec695a71e7708b6a6ef 100644 (file)
@@ -549,7 +549,7 @@ def create_connection(address, timeout=_GLOBAL_DEFAULT_TIMEOUT,
     global default timeout setting returned by :func:`getdefaulttimeout`
     is used.  If *source_address* is set it must be a tuple of (host, port)
     for the socket to bind as a source address before making the connection.
-    An host of '' or port 0 tells the OS to use the default.
+    A host of '' or port 0 tells the OS to use the default.
     """
 
     host, port = address
index f4b842834901a95af1228a36aba14ad01da12212..0e0196afec955164077ec2a32791f3cc33909507 100644 (file)
@@ -229,7 +229,7 @@ class TextFactoryTestsWithEmbeddedZeroBytes(unittest.TestCase):
         self.assertEqual(row[0], "a\x00b")
 
     def CheckCustom(self):
-        # A custom factory should receive an str argument
+        # A custom factory should receive a str argument
         self.con.text_factory = lambda x: x
         row = self.con.execute("select value from test").fetchone()
         self.assertIs(type(row[0]), str)
index 72c9277b7c134ee397d03aee79074746404057af..8b0a71530d08fd137fcc5a837792c93b4cabc0fc 100644 (file)
@@ -73,7 +73,7 @@ class RegressionTests(unittest.TestCase):
     def CheckStatementFinalizationOnCloseDb(self):
         # pysqlite versions <= 2.3.3 only finalized statements in the statement
         # cache when closing the database. statements that were still
-        # referenced in cursors weren't closed an could provoke "
+        # referenced in cursors weren't closed and could provoke "
         # "OperationalError: Unable to close due to unfinalised statements".
         con = sqlite.connect(":memory:")
         cursors = []
index b1ef626a9ac4b2954582fca94a0b5dcd808591cd..c7949fd9bf607c8d37ea2cdc1c2c0b1b64e9c83e 100644 (file)
@@ -56,7 +56,7 @@ class Rat(object):
     den = property(_get_den, None)
 
     def __repr__(self):
-        """Convert a Rat to an string resembling a Rat constructor call."""
+        """Convert a Rat to a string resembling a Rat constructor call."""
         return "Rat(%d, %d)" % (self.__num, self.__den)
 
     def __str__(self):
@@ -78,7 +78,7 @@ class Rat(object):
         raise ValueError, "can't convert %s to int" % repr(self)
 
     def __long__(self):
-        """Convert a Rat to an long; self.den must be 1."""
+        """Convert a Rat to a long; self.den must be 1."""
         if self.__den == 1:
             return long(self.__num)
         raise ValueError, "can't convert %s to long" % repr(self)
index 2cb2c88f73d10b9cb47f6ce342aee3dd3db38507..51014843397b2cd212669a457fafb21fa17bb745 100644 (file)
@@ -110,7 +110,7 @@ class samplecmdclass(cmd.Cmd):
     5  12  19
     6  13
 
-    This is a interactive test, put some commands in the cmdqueue attribute
+    This is an interactive test, put some commands in the cmdqueue attribute
     and let it execute
     This test includes the preloop(), postloop(), default(), emptyline(),
     parseline(), do_help() functions
index 57d5e066263352d66d945773e7a6276593e658e9..efc40cf2c23f903fd13a270677a628e8217374e6 100644 (file)
@@ -47,7 +47,7 @@ class ReadTest(unittest.TestCase):
         self.assertEqual(r.bytebuffer, "")
         self.assertEqual(r.charbuffer, u"")
 
-        # do the check again, this time using a incremental decoder
+        # do the check again, this time using an incremental decoder
         d = codecs.getincrementaldecoder(self.encoding)()
         result = u""
         for (c, partialresult) in zip(input.encode(self.encoding), partialresults):
index 4a341ede97b9bf81a2ce6f0015f758a42cc8ddab..4b27424e76badbc483c47ea93ecc3a0c2eac0c98 100644 (file)
@@ -951,7 +951,7 @@ the exception is in the output, but this will fail under Python 2:
         HTTPException: message
     TestResults(failed=1, attempted=2)
 
-But in Python 2 the module path is not included, an therefore a test must look
+But in Python 2 the module path is not included, and therefore a test must look
 like the following test to succeed in Python 2. But that test will fail under
 Python 3.
 
index babcce9f9b7e12b7d5cfa22cae89b779f57da9fd..cb2c45e77c06c00d668db4ac4c96058b68925959 100644 (file)
@@ -282,7 +282,7 @@ the function call setup. See <http://bugs.python.org/issue2016>.
     >>> f(**x)
     1 2
 
-A obscure message:
+An obscure message:
 
     >>> def f(a, b):
     ...    pass
index 69c381e060700d83e5876ec515c523350f61d4fd..c70106da549424e2ad22fa34ae36373cfa671010 100644 (file)
@@ -4,7 +4,7 @@ import os
 
 # From SF bug #422121:  Insecurities in dict comparison.
 
-# Safety of code doing comparisons has been an historical Python weak spot.
+# Safety of code doing comparisons has been a historical Python weak spot.
 # The problem is that comparison of structures written in C *naturally*
 # wants to hold on to things like the size of the container, or "the
 # biggest" containee so far, across a traversal of the container; but
index 6336a20cec696ca55f5e7cef9e7e899f3deeae6b..95bd26e06fec17fbfad312dd26929998b3b65eb0 100644 (file)
@@ -463,7 +463,7 @@ class SysModuleTest(unittest.TestCase):
         self.assertEqual(os.path.abspath(sys.executable), sys.executable)
 
         # Issue #7774: Ensure that sys.executable is an empty string if argv[0]
-        # has been set to an non existent program name and Python is unable to
+        # has been set to a non existent program name and Python is unable to
         # retrieve the real program name
         import subprocess
         # For a normal installation, it should work without 'cwd'
index 212bd1aa7514987c3d6884f03f10462ccdc3758d..ac14e66ad48d57c8211b1679a3d1edd15bc18ca7 100644 (file)
@@ -876,7 +876,7 @@ class EventTests(lock_tests.EventTests):
     eventtype = staticmethod(threading.Event)
 
 class ConditionAsRLockTests(lock_tests.RLockTests):
-    # An Condition uses an RLock by default and exports its API.
+    # Condition uses an RLock by default and exports its API.
     locktype = staticmethod(threading.Condition)
 
 class ConditionTests(lock_tests.ConditionTests):
index e0e399c449addaf83df541e43c6a8caaed4c57e5..3a2c0bf38f19a7e6eb39bc43fade1f7a789fb2aa 100644 (file)
@@ -358,7 +358,7 @@ del modules, mod_dict
 # tuple.
 #
 # @param value The time, given as an ISO 8601 string, a time
-#              tuple, or a integer time value.
+#              tuple, or an integer time value.
 
 def _strftime(value):
     if datetime:
@@ -1616,7 +1616,7 @@ class ServerProxy:
         # magic method dispatcher
         return _Method(self.__request, name)
 
-    # note: to call a remote object with an non-standard name, use
+    # note: to call a remote object with a non-standard name, use
     # result getattr(server, "strange-python-name")(args)
 
     def __call__(self, attr):
index a2b09107dceb37e0f9b520081356d7b654ee6cee..17aefc1deb1cd6560d40019d79c5307b6a35a83b 100644 (file)
@@ -20,7 +20,7 @@ class Special_Events_Events:
     }
 
     def mount(self, _object, _attributes={}, **_arguments):
-        """mount: Mounts an Disk Copy image as a disk volume
+        """mount: Mounts a Disk Copy image as a disk volume
         Required argument: a reference to the disk image to be mounted
         Keyword argument access_mode: the access mode for mounted volume (default is "any", i.e. best possible)
         Keyword argument checksum_verification: Verify the checksum before mounting?
index 60635fbb036557987165dd097b5aa9ea780fdf2e..7119362cb910809ca7157a0d74e58ea93888395e 100644 (file)
@@ -3096,7 +3096,7 @@ Core and builtins
   would not be removed while allocating a new weakref object.  Since
   GC could be invoked at that time, however, that assumption was
   invalid.  In a truly obscure case of GC being triggered during
-  creation for a new weakref object for an referent which already
+  creation for a new weakref object for a referent which already
   has a weakref without a callback which is only referenced from
   cyclic trash, a memory error can occur.  This consistently created a
   segfault in a debug build, but provided less predictable behavior in
@@ -7825,7 +7825,7 @@ Standard library
 
 - xml.dom.minidom offers a toprettyxml method. A number of DOM
   conformance issues have been resolved. In particular, Element now
-  has an hasAttributes method, and the handling of namespaces was
+  has a hasAttributes method, and the handling of namespaces was
   improved.
 
 - Ka-Ping Yee contributed two new modules: inspect.py, a module for
@@ -9315,7 +9315,7 @@ list of all new modules is included below.
 
 Probably the most pervasive change is the addition of Unicode support.
 We've added a new fundamental datatype, the Unicode string, a new
-build-in function unicode(), an numerous C APIs to deal with Unicode
+built-in function unicode(), a numerous C APIs to deal with Unicode
 and encodings.  See the file Misc/unicode.txt for details, or
 http://starship.python.net/crew/lemburg/unicode-proposal.txt.
 
@@ -10800,7 +10800,7 @@ real list objects.
 - The uu module now deals better with trailing garbage generated by
 some broke uuencoders.
 
-- The telnet module now has an my_interact() method which uses threads
+- The telnet module now has a my_interact() method which uses threads
 instead of select.  The interact() method uses this by default on
 Windows (where the single-threaded version doesn't work).
 
@@ -11857,7 +11857,7 @@ PyEval_CallMethod().
 - New macros to access object members for PyFunction, PyCFunction
 objects.
 
-- New APIs PyImport_AppendInittab() an PyImport_ExtendInittab() to
+- New APIs PyImport_AppendInittab() and PyImport_ExtendInittab() to
 dynamically add one or many entries to the table of built-in modules.
 
 - New macro Py_InitModule3(name, methods, doc) which calls
@@ -16267,7 +16267,7 @@ a string it is returned unchanged, otherwise it returns `x`.
 * repr(x) returns the same as `x`.  (Some users found it easier to
 have this as a function.)
 
-* round(x) returns the floating point number x rounded to an whole
+* round(x) returns the floating point number x rounded to a whole
 number, represented as a floating point number.  round(x, n) returns x
 rounded to n digits.
 
index e78ac957f84cf1f954360b52612764f54850f565..af4665897ac106e7d7e91f52c6b975dd990970dd 100644 (file)
@@ -717,7 +717,7 @@ parse_process_char(ReaderObj *self, char c)
         break;
 
     case QUOTE_IN_QUOTED_FIELD:
-        /* doublequote - seen a quote in an quoted field */
+        /* doublequote - seen a quote in a quoted field */
         if (dialect->quoting != QUOTE_NONE &&
             c == dialect->quotechar) {
             /* save "" as " */
index 65c55cb3f805662c6503ffe680ce0866e4701fd9..fe79b08c0046a3c8ff0a432642fce6288b81f78b 100644 (file)
@@ -3899,7 +3899,7 @@ PyCFuncPtr_call(PyCFuncPtrObject *self, PyObject *inargs, PyObject *kwds)
             return NULL;
         }
         /* there should be more checks? No, in Python */
-        /* First arg is an pointer to an interface instance */
+        /* First arg is a pointer to an interface instance */
         if (!this->b_ptr || *(void **)this->b_ptr == NULL) {
             PyErr_SetString(PyExc_ValueError,
                             "NULL COM pointer access");
index cab7ca862e131018a9802b82cfddd3f1fa51a9f9..88f4f23d82ecbfeceece4a9d08ca235b7f1b3200 100644 (file)
@@ -3444,7 +3444,7 @@ load_bool(Unpicklerobject *self, PyObject *boolean)
 
 /* s contains x bytes of a little-endian integer.  Return its value as a
  * C int.  Obscure:  when x is 1 or 2, this is an unsigned little-endian
- * int, but when x is 4 it's a signed one.  This is an historical source
+ * int, but when x is 4 it's a signed one.  This is a historical source
  * of x-platform bugs.
  */
 static long
index edb67a40dcd3479d8c142e7fd880050362134b85..3db35917026db726f70129f64f787e26ce784880 100644 (file)
@@ -2883,7 +2883,7 @@ bytearray(string, encoding[, errors]) -> bytearray.\n\
 bytearray(bytes_or_bytearray) -> mutable copy of bytes_or_bytearray.\n\
 bytearray(memory_view) -> bytearray.\n\
 \n\
-Construct an mutable bytearray object from:\n\
+Construct a mutable bytearray object from:\n\
   - an iterable yielding integers in range(256)\n\
   - a text string encoded using the specified encoding\n\
   - a bytes or a bytearray object\n\
index 965e1ad0ef3babe860ba0df2cebe89ca00d413e3..2bd1839d72e73fbc8c37e5a1411bfba56b15fd33 100644 (file)
@@ -1310,7 +1310,7 @@ static PyTypeObject PyFieldNameIter_Type = {
     0};
 
 /* unicode_formatter_field_name_split is used to implement
-   string.Formatter.vformat.  it takes an PEP 3101 "field name", and
+   string.Formatter.vformat.  it takes a PEP 3101 "field name", and
    returns a tuple of (first, rest): "first", the part before the
    first '.' or '['; and "rest", an iterator for the rest of the field
    name.  it's a wrapper around stringlib/string_format.h's
index f757aa531053430028275521e6b3f2a23b3ccb21..e139cce85f828defa80b26e00c33947d6061fe3a 100644 (file)
@@ -301,7 +301,7 @@ PyDoc_STRVAR(SetValueEx_doc,
 "  REG_EXPAND_SZ -- A null-terminated string that contains unexpanded references\n"
 "                   to environment variables (for example, %PATH%).\n"
 "  REG_LINK -- A Unicode symbolic link.\n"
-"  REG_MULTI_SZ -- An sequence of null-terminated strings, terminated by\n"
+"  REG_MULTI_SZ -- A sequence of null-terminated strings, terminated by\n"
 "                  two null characters.  Note that Python handles this\n"
 "                  termination automatically.\n"
 "  REG_NONE -- No defined value type.\n"
index 9796a341416d4bfadd2a5d81d258ab022e42d636..a161d7cb46a8de7ac3fdde74f813258d89b83945 100644 (file)
@@ -178,7 +178,7 @@ PyThread_start_new_thread(void (*func)(void *), void *arg)
 }
 
 /*
- * Return the thread Id instead of an handle. The Id is said to uniquely identify the
+ * Return the thread Id instead of a handle. The Id is said to uniquely identify the
  * thread in the system
  */
 long
index 51ddc02f9af704e4a8340b44eb8037b914dc90a1..b9c10da5b8499daecb0b41569f643e8efe80403c 100644 (file)
@@ -42,7 +42,7 @@ long PyThread_start_new_thread(void (*func)(void *), void *arg)
 }
 
 /*
- * Return the thread Id instead of an handle. The Id is said to uniquely identify the
+ * Return the thread Id instead of a handle. The Id is said to uniquely identify the
  * thread in the system
  */
 long PyThread_get_thread_ident(void)
index 390ea29259c9933cc7e88910ad381b785c6e61ee..e713654d84c1d35e6ce3c92836c10b9a917da948 100755 (executable)
@@ -84,7 +84,7 @@ class NullPyObjectPtr(RuntimeError):
 
 
 def safety_limit(val):
-    # Given a integer value from the process being debugged, limit it to some
+    # Given an integer value from the process being debugged, limit it to some
     # safety threshold so that arbitrary breakage within said process doesn't
     # break the gdb process too much (e.g. sizes of iterations, sizes of lists)
     return min(val, 1000)
@@ -132,7 +132,7 @@ class TruncatedStringIO(object):
 
 class PyObjectPtr(object):
     """
-    Class wrapping a gdb.Value that's either a (PyObject*) within the
+    Class wrapping a gdb.Value that's either a (PyObject*) within the
     inferior process, or some subclass pointer e.g. (PyStringObject*)
 
     There will be a subclass for every refined PyObject type that we care
index a56e40afbc8ca50442911dd0e3fbadf8d0765bb4..3ef4a6519e9b77bf8fff16f814bdb2013ba1821a 100644 (file)
@@ -259,7 +259,7 @@ def remove_old_versions(db):
     # either both per-machine or per-user.
     migrate_features = 1
     # See "Upgrade Table". We remove releases with the same major and
-    # minor version. For an snapshot, we remove all earlier snapshots. For
+    # minor version. For a snapshot, we remove all earlier snapshots. For
     # a release, we remove all snapshots, and all earlier releases.
     if snapshot:
         add_data(db, "Upgrade",