mirror of
https://github.com/python/cpython.git
synced 2026-05-24 11:22:04 +00:00
Removed duplicated words in in comments and docs.
This commit is contained in:
commit
83000a490a
16 changed files with 19 additions and 19 deletions
|
|
@ -61,7 +61,7 @@ class itself, but instead to have a reference to a helper object
|
|||
the Future is collected, and the helper is present, the helper
|
||||
object is also collected, and its __del__() method will log the
|
||||
traceback. When the Future's result() or exception() method is
|
||||
called (and a helper object is present), it removes the the helper
|
||||
called (and a helper object is present), it removes the helper
|
||||
object, after calling its clear() method to prevent it from
|
||||
logging.
|
||||
|
||||
|
|
|
|||
|
|
@ -172,7 +172,7 @@ def pbkdf2_hmac(hash_name, password, salt, iterations, dklen=None):
|
|||
|
||||
def prf(msg, inner=inner, outer=outer):
|
||||
# PBKDF2_HMAC uses the password as key. We can re-use the same
|
||||
# digest objects and and just update copies to skip initialization.
|
||||
# digest objects and just update copies to skip initialization.
|
||||
icpy = inner.copy()
|
||||
ocpy = outer.copy()
|
||||
icpy.update(msg)
|
||||
|
|
|
|||
|
|
@ -105,7 +105,7 @@ def test_wait_for_handle(self):
|
|||
|
||||
_overlapped.SetEvent(event)
|
||||
|
||||
# Wait for for set event;
|
||||
# Wait for set event;
|
||||
# result should be True immediately
|
||||
fut = self.loop._proactor.wait_for_handle(event, 10)
|
||||
start = self.loop.time()
|
||||
|
|
|
|||
|
|
@ -10,7 +10,7 @@
|
|||
PORT = None
|
||||
|
||||
def make_request_and_skipIf(condition, reason):
|
||||
# If we skip the test, we have to make a request because the
|
||||
# If we skip the test, we have to make a request because
|
||||
# the server created in setUp blocks expecting one to come in.
|
||||
if not condition:
|
||||
return lambda func: func
|
||||
|
|
|
|||
|
|
@ -517,7 +517,7 @@ def is_unavailable_exception(e):
|
|||
return True
|
||||
|
||||
def make_request_and_skipIf(condition, reason):
|
||||
# If we skip the test, we have to make a request because the
|
||||
# If we skip the test, we have to make a request because
|
||||
# the server created in setUp blocks expecting one to come in.
|
||||
if not condition:
|
||||
return lambda func: func
|
||||
|
|
|
|||
|
|
@ -57,7 +57,7 @@ class ZipSupportTests(unittest.TestCase):
|
|||
# This used to use the ImportHooksBaseTestCase to restore
|
||||
# the state of the import related information
|
||||
# in the sys module after each test. However, that restores
|
||||
# *too much* information and breaks for the invocation of
|
||||
# *too much* information and breaks for the invocation
|
||||
# of test_doctest. So we do our own thing and leave
|
||||
# sys.modules alone.
|
||||
# We also clear the linecache and zipimport cache
|
||||
|
|
|
|||
|
|
@ -125,7 +125,7 @@ class Element:
|
|||
This class is the reference implementation of the Element interface.
|
||||
|
||||
An element's length is its number of subelements. That means if you
|
||||
you want to check if an element is truly empty, you should check BOTH
|
||||
want to check if an element is truly empty, you should check BOTH
|
||||
its length AND its text attribute.
|
||||
|
||||
The element tag, attribute names, and attribute values can be either
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue