]> granicus.if.org Git - python/commitdiff
Issue #27125: Remove duplicated words from documentation and comments
authorMartin Panter <vadmium+py@gmail.com>
Mon, 30 May 2016 04:04:50 +0000 (04:04 +0000)
committerMartin Panter <vadmium+py@gmail.com>
Mon, 30 May 2016 04:04:50 +0000 (04:04 +0000)
Doc/howto/pyporting.rst
Doc/library/tix.rst
Lib/ctypes/macholib/README.ctypes
Lib/idlelib/idle_test/README.txt
Lib/lib-tk/Tix.py
Lib/test/test_socket.py
Modules/_ctypes/_ctypes.c
Objects/setobject.c
Objects/stringobject.c

index 29ba8e5ba00d2fb23258fbdf0a8532681cf75e77..59b283ae1e628e977d59b9918acdf66a216c4287 100644 (file)
@@ -346,7 +346,7 @@ your tests under multiple Python interpreters is tox_. You can then integrate
 tox with your continuous integration system so that you never accidentally break
 Python 2 or 3 support.
 
-You may also want to use use the ``-bb`` flag with the Python 3 interpreter to
+You may also want to use the ``-bb`` flag with the Python 3 interpreter to
 trigger an exception when you are comparing bytes to strings. Usually it's
 simply ``False``, but if you made a mistake in your separation of text/binary
 data handling you may be accidentally comparing text and binary data. This flag
index ca2f07ea0789dd76cd7b0d870def2d75d978101d..ed6948f2f895da3bf8b6084aea5e71dcb9c4bfa3 100644 (file)
@@ -151,7 +151,7 @@ Basic Widgets
 
    The `LabelEntry
    <http://tix.sourceforge.net/dist/current/man/html/TixCmd/tixLabelEntry.htm>`_
-   widget packages an entry widget and a label into one mega widget. It can be used
+   widget packages an entry widget and a label into one mega widget. It can
    be used to simplify the creation of "entry-form" type of interface.
 
 .. Python Demo of:
index 4e10cbe41144f0bdb55df3e9e61713f0e3b199b2..2866e9f349288a4059e7bacee8f0ad9ed886d068 100644 (file)
@@ -1,4 +1,4 @@
-Files in this directory from from Bob Ippolito's py2app.
+Files in this directory come from Bob Ippolito's py2app.
 
 License: Any components of the py2app suite may be distributed under
 the MIT or PSF open source licenses.
index 632b2668cd62214e90fd6f6c211cafa8554c59e7..621b3e3c457ecba34e4120f578606093dfa05bb3 100644 (file)
@@ -16,7 +16,7 @@ python -m idlelib.idle_test.htest
 
 The idle directory, idlelib, has over 60 xyz.py files. The idle_test
 subdirectory should contain a test_xyz.py for each, where 'xyz' is lowercased
-even if xyz.py is not. Here is a possible template, with the blanks after after
+even if xyz.py is not. Here is a possible template, with the blanks after
 '.' and 'as', and before and after '_' to be filled in.
 
 import unittest
index c98b549d9572682e8158fc7cb593df062c4c5505..3266e01bb76d66b334512de578bc470334433cb7 100644 (file)
@@ -1052,8 +1052,8 @@ class InputOnly(TixWidget):
 
 class LabelEntry(TixWidget):
     """LabelEntry - Entry field with label. Packages an entry widget
-    and a label into one mega widget. It can be used be used to simplify
-    the creation of ``entry-form'' type of interface.
+    and a label into one mega widget. It can be used to simplify the creation
+    of ``entry-form'' type of interface.
 
     Subwidgets       Class
     ----------       -----
index 4ae1e4116e4202c91848ccdb40160570217de0b2..2387029580c8a650fefb86008bcfa0e383cbcca0 100644 (file)
@@ -1755,7 +1755,7 @@ class TIPCThreadableTest(unittest.TestCase, ThreadableTest):
         self.conn, self.connaddr = self.srv.accept()
 
     def clientSetUp(self):
-        # The is a hittable race between serverExplicitReady() and the
+        # There is a hittable race between serverExplicitReady() and the
         # accept() call; sleep a little while to avoid it, otherwise
         # we could get an exception
         time.sleep(0.1)
index 9baf4b36ff7662352cc9eb2637a0f488076bb7db..86208e2e16d9a8c3bf6459d40f9855d2f9f223f2 100644 (file)
@@ -55,7 +55,7 @@ from_address(addr)
 
 from_param(obj)
     - typecheck and convert a Python object into a C function call parameter
-      the result may be an instance of the type, or an integer or tuple
+      The result may be an instance of the type, or an integer or tuple
       (typecode, value[, obj])
 
 instance methods/properties
index 3958a6cac88683cc414fd2c91b4bdf2359b5dceb..b3ca643c4f6caaefd177ad877f0726936c97cdc4 100644 (file)
@@ -784,7 +784,7 @@ frozenset_hash(PyObject *self)
     hash *= PySet_GET_SIZE(self) + 1;
     while (set_next(so, &pos, &entry)) {
         /* Work to increase the bit dispersion for closely spaced hash
-           values.  The is important because some use cases have many
+           values.  This is important because some use cases have many
            combinations of a small number of elements with nearby
            hashes so that many distinct combinations collapse to only
            a handful of distinct hash values. */
index e19df6e9ef1d623f77940605def9c11875d19736..f2db6da65aa4e8c35779a087e354aa28d210c6f9 100644 (file)
@@ -35,7 +35,7 @@ static PyObject *interned;
    For PyString_FromString(), the parameter `str' points to a null-terminated
    string containing exactly `size' bytes.
 
-   For PyString_FromStringAndSize(), the parameter the parameter `str' is
+   For PyString_FromStringAndSize(), the parameter `str' is
    either NULL or else points to a string containing at least `size' bytes.
    For PyString_FromStringAndSize(), the string in the `str' parameter does
    not have to be null-terminated.  (Therefore it is safe to construct a