Issue #17047: remove doubled words added in 3.3
authorTerry Jan Reedy <tjreedy@udel.edu>
Mon, 11 Mar 2013 22:34:00 +0000 (18:34 -0400)
committerTerry Jan Reedy <tjreedy@udel.edu>
Mon, 11 Mar 2013 22:34:00 +0000 (18:34 -0400)
as reported by Serhiy Storchaka and Matthew Barnett.

12 files changed:
Doc/library/email.policy.rst
Doc/library/ipaddress.rst
Doc/library/stdtypes.rst
Doc/library/unittest.mock.rst
Lib/email/_encoded_words.py
Lib/email/_header_value_parser.py
Lib/email/mime/text.py
Lib/email/policy.py
Lib/test/test_decimal.py
Lib/tkinter/__init__.py
Lib/unittest/mock.py
Modules/socketmodule.c

index 31b13c15f10ed29d916b63404e1974d6b086db31..51ac5c07380b24f38386b2652cc7058d140fd4a0 100644 (file)
@@ -327,7 +327,7 @@ added matters.  To illustrate::
       each resulting line to the ``max_line_length``.  If ``cte_type`` is
       ``7bit``, non-ascii binary data is CTE encoded using the ``unknown-8bit``
       charset.  Otherwise the original source header is used, with its existing
-      line breaks and and any (RFC invalid) binary data it may contain.
+      line breaks and any (RFC invalid) binary data it may contain.
 
 
 .. note::
index 86d84af9c8c6b5d23374fa9cf5d3b9610e532e89..ed2321739a353dddaec8d4c108392346ac4166a6 100644 (file)
@@ -393,7 +393,7 @@ so to avoid duplication they are only documented for :class:`IPv4Network`.
    .. attribute:: is_link_local
 
       These attributes are true for the network as a whole if they are true
-      true for both the network address and the broadcast address
+      for both the network address and the broadcast address
 
    .. attribute:: network_address
 
@@ -452,7 +452,7 @@ so to avoid duplication they are only documented for :class:`IPv4Network`.
    .. method:: overlaps(other)
 
       ``True`` if this network is partly or wholly contained in *other* or
-      or *other* is wholly contained in this network.
+      *other* is wholly contained in this network.
 
    .. method:: address_exclude(network)
 
@@ -582,7 +582,7 @@ so to avoid duplication they are only documented for :class:`IPv4Network`.
    .. attribute:: is_site_local
 
       These attribute is true for the network as a whole if it is true
-      true for both the network address and the broadcast address
+      for both the network address and the broadcast address
 
 
 Operators
index 30c242966428d14fd5388e8d220d0cc853a1711e..7e5f04f6c26f302103bf2fda7333f08f7ec93ccd 100644 (file)
@@ -2637,7 +2637,7 @@ copying.
          >>> z.nbytes
          48
 
-      Cast 1D/unsigned char to to 2D/unsigned long::
+      Cast 1D/unsigned char to 2D/unsigned long::
 
          >>> buf = struct.pack("L"*6, *list(range(6)))
          >>> x = memoryview(buf)
index dc6ca1b1c79a290f7cd4af34965812518a2bc762..ec316dbdb88e82c10b4ae9d6f020fdc630cfdc59 100644 (file)
@@ -988,7 +988,7 @@ patch
     you pass in `create=True`, and the attribute doesn't exist, patch will
     create the attribute for you when the patched function is called, and
     delete it again afterwards. This is useful for writing tests against
-    attributes that your production code creates at runtime. It is off by by
+    attributes that your production code creates at runtime. It is off by
     default because it can be dangerous. With it switched on you can write
     passing tests against APIs that don't actually exist!
 
index e9f6e20bd7df8b6b79b28fd0ab288f4f737121c1..9e0cc75b0196737e69ea22efbb4a182e17d0a048 100644 (file)
@@ -14,7 +14,7 @@ to a public API if there is demand.
 # cte (Content Transfer Encoding) is either 'q' or 'b' (ignoring case).  In
 # theory other letters could be used for other encodings, but in practice this
 # (almost?) never happens.  There could be a public API for adding entries
-# to to the CTE tables, but YAGNI for now.  'q' is Quoted Printable, 'b' is
+# to the CTE tables, but YAGNI for now.  'q' is Quoted Printable, 'b' is
 # Base64.  The meaning of encoded_string should be obvious.  'lang' is optional
 # as indicated by the brackets (they are not part of the syntax) but is almost
 # never encountered in practice.
index 1924ed158862a1c8ee2cf3e853ade3795ba320e2..26cfa52723fe2db10419f618a259800ffa68316f 100644 (file)
@@ -1864,7 +1864,7 @@ def get_dtext(value):
     """ dtext = <printable ascii except \ [ ]> / obs-dtext
         obs-dtext = obs-NO-WS-CTL / quoted-pair
 
-    We allow anything except the excluded characters, but but if we find any
+    We allow anything except the excluded characters, but if we find any
     ASCII other than the RFC defined printable ASCII an NonPrintableDefect is
     added to the token's defects list.  Quoted pairs are converted to their
     unquoted values, so what is returned is a ptext token, in this case a
index 80ff95010fc2487df93acf88ed43bed5aa1ef2a3..3b5b09f1907f10f185d8e489149083ac9559c8e6 100644 (file)
@@ -26,7 +26,7 @@ class MIMEText(MIMENonMultipart):
         Content-Transfer-Encoding header will also be set.
         """
 
-        # If no _charset was specified, check to see see if there are non-ascii
+        # If no _charset was specified, check to see if there are non-ascii
         # characters present. If not, use 'us-ascii', otherwise use utf-8.
         # XXX: This can be removed once #7304 is fixed.
         if _charset is None:
index a17f598b5065c20447aa13f31053ee2b48dff413..38e88afe1df3e09ffb0bdd8dcce369e6c1772918 100644 (file)
@@ -23,7 +23,7 @@ class EmailPolicy(Policy):
     """+
     PROVISIONAL
 
-    The API extensions enabled by this this policy are currently provisional.
+    The API extensions enabled by this policy are currently provisional.
     Refer to the documentation for details.
 
     This policy adds new header parsing and folding algorithms.  Instead of
index 69a2fafffb306dac3d4c0e3812c0ab64a97dfcdb..e8256a5c7f031f87b2d5b31560bb3817f258a44b 100644 (file)
@@ -4492,7 +4492,7 @@ class PyWhitebox(unittest.TestCase):
             x = Decimal(2**578) ** Decimal("-0.5")
 
     def test_py_immutability_operations(self):
-        # Do operations and check that it didn't change change internal objects.
+        # Do operations and check that it didn't change internal objects.
         Decimal = P.Decimal
         DefaultContext = P.DefaultContext
         setcontext = P.setcontext
index ea2370569915ee26ef11934d7c8863f5ff426e8d..f61978640517f10163000b6422c45f4279ba76db 100644 (file)
@@ -3152,7 +3152,7 @@ class Text(Widget, XView, YView):
     def peer_create(self, newPathName, cnf={}, **kw): # new in Tk 8.5
         """Creates a peer text widget with the given newPathName, and any
         optional standard configuration options. By default the peer will
-        have the same start and and end line as the parent widget, but
+        have the same start and end line as the parent widget, but
         these can be overriden with the standard configuration options."""
         self.tk.call(self._w, 'peer', 'create', newPathName,
             *self._options(cnf, kw))
index 324cf399b37ad7d9a29e3af325048be540b618e1..8361fdea8de997cdc1fe3228a0ac4675b414b7f9 100644 (file)
@@ -1417,7 +1417,7 @@ def patch(
     you pass in `create=True`, and the attribute doesn't exist, patch will
     create the attribute for you when the patched function is called, and
     delete it again afterwards. This is useful for writing tests against
-    attributes that your production code creates at runtime. It is off by by
+    attributes that your production code creates at runtime. It is off by
     default because it can be dangerous. With it switched on you can write
     passing tests against APIs that don't actually exist!
 
index 41982070ed2cdcd3b9b33ac25421db6383fe3c56..a6f8c5a70894fa3001940875a9036126b2d1e78e 100644 (file)
@@ -3609,7 +3609,7 @@ sock_sendmsg(PySocketSockObject *s, PyObject *args)
            the next header, it checks its (uninitialized) cmsg_len
            member to see if the "message" fits in the buffer, and
            returns NULL if it doesn't.  Zero-filling the buffer
-           ensures that that doesn't happen. */
+           ensures that this doesn't happen. */
         memset(controlbuf, 0, controllen);
 
         for (i = 0; i < ncmsgbufs; i++) {