]> granicus.if.org Git - python/commitdiff
Removed duplicated words in in comments and docs.
authorSerhiy Storchaka <storchaka@gmail.com>
Mon, 1 Dec 2014 16:16:30 +0000 (18:16 +0200)
committerSerhiy Storchaka <storchaka@gmail.com>
Mon, 1 Dec 2014 16:16:30 +0000 (18:16 +0200)
Lib/hashlib.py
Lib/test/test_docxmlrpc.py
Modules/posixmodule.c
Python/pystrtod.c
Python/random.c
Python/thread.c

index 4a411bc79f0a3f3678718187b5c360c5a04b5929..bbd06b9996ee554f82f11c41bb013bf82f1f1099 100644 (file)
@@ -187,7 +187,7 @@ except ImportError:
 
         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)
index 80d18036adf562669a759db62b5847d74972c8c1..a1a1fcf8bc426574990d5311cb50b59605fb1a31 100644 (file)
@@ -10,7 +10,7 @@ import unittest
 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
index 4d0c8fabd06f0e207eaf92306977d6e5097a0072..379423cc80a67eb9f2991643709b311f5e40839b 100644 (file)
@@ -8496,7 +8496,7 @@ posix_sysconf(PyObject *self, PyObject *args)
 
 
 /* This code is used to ensure that the tables of configuration value names
- * are in sorted order as required by conv_confname(), and also to build the
+ * are in sorted order as required by conv_confname(), and also to build
  * the exported dictionaries that are used to publish information about the
  * names available on the host platform.
  *
index 859af435f9790d97a0826425061d4ddd3d39960c..ae6ab9c94fd789b6953f7df675642e95144660f2 100644 (file)
@@ -324,7 +324,7 @@ PyOS_ascii_atof(const char *nptr)
 
    On overflow (e.g., when trying to convert '1e500' on an IEEE 754 machine),
    if overflow_exception is NULL then +-Py_HUGE_VAL is returned, and no Python
-   exception is raised.  Otherwise, overflow_exception should point to a
+   exception is raised.  Otherwise, overflow_exception should point to
    a Python exception, this exception will be raised, -1.0 will be returned,
    and *endptr will point just past the end of the converted value.
 
index 0776bfcc739e3f2ac74d784556d74f0cff6b2b88..1e5776d6183e9b2360a83b2ce0c155f9211d977c 100644 (file)
@@ -274,7 +274,7 @@ lcg_urandom(unsigned int x0, unsigned char *buffer, size_t size)
 }
 
 /* Fill buffer with size pseudo-random bytes from the operating system random
-   number generator (RNG). It is suitable for for most cryptographic purposes
+   number generator (RNG). It is suitable for most cryptographic purposes
    except long living private keys for asymmetric encryption.
 
    Return 0 on success, raise an exception and return -1 on error. */
index dd333e8f944a7229b0298ea8d0cfb2e8c68aef67..c54670dfeb0001b2c4c3f263a07ea45f6a49cd43 100644 (file)
@@ -271,7 +271,7 @@ find_key(int key, void *value)
         if (p->id == id && p->key == key)
             goto Done;
         /* Sanity check.  These states should never happen but if
-         * they do we must abort.  Otherwise we'll end up spinning in
+         * they do we must abort.  Otherwise we'll end up spinning
          * in a tight loop with the lock held.  A similar check is done
          * in pystate.c tstate_delete_common().  */
         if (p == prev_p)