]> granicus.if.org Git - python/commitdiff
[3.7] Fix duplicating words words. (GH-6296) (GH-6297)
authorSerhiy Storchaka <storchaka@gmail.com>
Wed, 28 Mar 2018 20:05:24 +0000 (23:05 +0300)
committerGitHub <noreply@github.com>
Wed, 28 Mar 2018 20:05:24 +0000 (23:05 +0300)
Most of them have been added in 3.7.
(cherry picked from commit bac2d5ba30339298db7d4caa9c8cd31d807cf081)

Doc/library/asyncio-protocol.rst
Doc/library/contextvars.rst
Doc/library/datetime.rst
Doc/library/test.rst
Doc/whatsnew/3.7.rst
Lib/asyncio/protocols.py
Lib/idlelib/idle_test/test_editmenu.py
Lib/idlelib/idle_test/test_text.py
Misc/NEWS.d/3.7.0b2.rst
Misc/NEWS.d/next/Library/2018-03-18-17-38-48.bpo-32953.t8WAWN.rst
Modules/_datetimemodule.c

index 004cac80d90c2cc6d330be7beb34174f603ef17e..ef6441605cd72c2f4aa11b41289f559fad165221 100644 (file)
@@ -339,7 +339,7 @@ Protocol classes
    control of the receive buffer.
 
    .. versionadded:: 3.7
-      **Important:** this has been been added to asyncio in Python 3.7
+      **Important:** this has been added to asyncio in Python 3.7
       *on a provisional basis*!  Treat it as an experimental API that
       might be changed or removed in Python 3.8.
 
@@ -450,7 +450,7 @@ Streaming protocols with manual receive buffer control
 ------------------------------------------------------
 
 .. versionadded:: 3.7
-   **Important:** :class:`BufferedProtocol` has been been added to
+   **Important:** :class:`BufferedProtocol` has been added to
    asyncio in Python 3.7 *on a provisional basis*!  Consider it as an
    experimental API that might be changed or removed in Python 3.8.
 
index 1e0987ce4d6aba451ed2329a5330dec0588b4a70..abd0d5fa0fdf970931e014137d2313b881d7c241 100644 (file)
@@ -253,7 +253,7 @@ client::
         addr = writer.transport.get_extra_info('socket').getpeername()
         client_addr_var.set(addr)
 
-        # In any code that we call is is now possible to get
+        # In any code that we call is now possible to get
         # client's address by calling 'client_addr_var.get()'.
 
         while True:
index c1b164ebc1f23ab7dda49607c5993000df390f52..8d91f4ef93465414f12aee6e9e339033b587c4ee 100644 (file)
@@ -2209,8 +2209,8 @@ Notes:
       :meth:`utcoffset` is transformed into a string of the form
       ±HHMM[SS[.uuuuuu]], where HH is a 2-digit string giving the number of UTC
       offset hours, and MM is a 2-digit string giving the number of UTC offset
-      minutes, SS is a 2-digit string string giving the number of UTC offset
-      seconds and uuuuuu is a 2-digit string string giving the number of UTC
+      minutes, SS is a 2-digit string giving the number of UTC offset
+      seconds and uuuuuu is a 2-digit string giving the number of UTC
       offset microseconds.  The uuuuuu part is omitted when the offset is a
       whole number of minutes and both the uuuuuu and the SS parts are omitted
       when the offset is a whole number of minutes.  For example, if
index 0746fcfde0aaf68f2b1f8e21bf36f5dff467e43f..7b0971a83bcb6ea573401d2e707220675f87abd9 100644 (file)
@@ -1153,7 +1153,7 @@ The :mod:`test.support` module defines the following functions:
    *module*.
 
    The *name_of_module* argument can specify (as a string or tuple thereof) what
-   module(s) an API could be defined in in order to be detected as a public
+   module(s) an API could be defined in order to be detected as a public
    API. One case for this is when *module* imports part of its public API from
    other modules, possibly a C backend (like ``csv`` and its ``_csv``).
 
index e0c19cfa3bd09e2931e802bf48e7da463923ee49..1f524884adaed4d27b022e897c16a4699b6e7cab 100644 (file)
@@ -684,7 +684,7 @@ feature. Instances must be created with :class:`~ssl.SSLContext` methods
 (Contributed by Christian Heimes in :issue:`32951`)
 
 OpenSSL 1.1 APIs for setting the minimum and maximum TLS protocol version are
-available as as :attr:`~ssl.SSLContext.minimum_version` and
+available as :attr:`~ssl.SSLContext.minimum_version` and
 :attr:`~ssl.SSLContext.maximum_version`. Supported protocols are indicated
 by new flags like :data:`~ssl.HAS_TLSv1_1`.
 (Contributed by Christian Heimes in :issue:`32609`.)
index 8904478f1ab28d0647a73de5d5430370535f7fa9..dc298a8d5c9510d5bd722a71269926d193c16173 100644 (file)
@@ -105,7 +105,7 @@ class Protocol(BaseProtocol):
 class BufferedProtocol(BaseProtocol):
     """Interface for stream protocol with manual buffer control.
 
-    Important: this has been been added to asyncio in Python 3.7
+    Important: this has been added to asyncio in Python 3.7
     *on a provisional basis*!  Consider it as an experimental API that
     might be changed or removed in Python 3.8.
 
index 17eb25c4b4c0d99c4271de72ab6f3d21704c5e36..17478473a3d1b2711fd8e1ffa7f6076c540c4386 100644 (file)
@@ -1,6 +1,6 @@
 '''Test (selected) IDLE Edit menu items.
 
-Edit modules have their own test files files
+Edit modules have their own test files
 '''
 from test.support import requires
 requires('gui')
index a5ba7bb2136654e59cb0410d58d71cdadba23440..0f31179e04b28f239fe1729ed5b6acc6cb5772a6 100644 (file)
@@ -9,7 +9,7 @@ from _tkinter import TclError
 class TextTest(object):
     "Define items common to both sets of tests."
 
-    hw = 'hello\nworld'  # Several tests insert this after after initialization.
+    hw = 'hello\nworld'  # Several tests insert this after initialization.
     hwn = hw+'\n'  # \n present at initialization, before insert
 
     # setUpClass defines cls.Text and maybe cls.root.
index fa659d5dccbc66a150b2ef705d4b2d370195657c..d597cee123091328c98026629084625ed2560cf8 100644 (file)
@@ -390,7 +390,7 @@ found. Patch by Zackery Spytz.
 .. nonce: qpeijr
 .. section: Library
 
-Add Ttk spinbox widget to tkinter.ttk.  Patch by Alan D Moore.
+Add Ttk spinbox widget to :mod:`tkinter.ttk`.  Patch by Alan D Moore.
 
 ..
 
index fbea34aa9a2aa15981acd7e74ac262135ea73594..03c1162c7833186171fe4c28dbb50afe2f557021 100644 (file)
@@ -1,4 +1,4 @@
 If a non-dataclass inherits from a frozen dataclass, allow attributes to be
-added to the derived class.  Only attributes from from the frozen dataclass
+added to the derived class.  Only attributes from the frozen dataclass
 cannot be assigned to.  Require all dataclasses in a hierarchy to be either
 all frozen or all non-frozen.
index b69fcdffcc920cda57cadc3b21fa0bd443c37adb..6855903bdd577241da61f76908f16a496ad4ff48 100644 (file)
@@ -5214,7 +5214,7 @@ get_flip_fold_offset(PyObject *dt)
 
 /* PEP 495 exception: Whenever one or both of the operands in
  * inter-zone comparison is such that its utcoffset() depends
- * on the value of its fold fold attribute, the result is False.
+ * on the value of its fold attribute, the result is False.
  *
  * Return 1 if exception applies, 0 if not,  and -1 on error.
  */