summaryrefslogtreecommitdiffstats
path: root/Python
diff options
context:
space:
mode:
authorSerhiy Storchaka <storchaka@gmail.com>2014-12-01 16:30:14 (GMT)
committerSerhiy Storchaka <storchaka@gmail.com>2014-12-01 16:30:14 (GMT)
commit83000a490a36f4c3c579151ff09eeb4875d0d4cd (patch)
tree4685eb31eff461a6c77ab302bcfa689aff7e3f7b /Python
parent2205da43a6bb68b641d97fa7832b71c8a57efb77 (diff)
parent56a6d855e2b93b0eb39a3b291ef43b2d03c5e986 (diff)
downloadcpython-83000a490a36f4c3c579151ff09eeb4875d0d4cd.zip
cpython-83000a490a36f4c3c579151ff09eeb4875d0d4cd.tar.gz
cpython-83000a490a36f4c3c579151ff09eeb4875d0d4cd.tar.bz2
Removed duplicated words in in comments and docs.
Diffstat (limited to 'Python')
-rw-r--r--Python/pystrtod.c2
-rw-r--r--Python/random.c2
-rw-r--r--Python/thread.c2
3 files changed, 3 insertions, 3 deletions
diff --git a/Python/pystrtod.c b/Python/pystrtod.c
index b8dd919..209c908 100644
--- a/Python/pystrtod.c
+++ b/Python/pystrtod.c
@@ -325,7 +325,7 @@ _PyOS_ascii_strtod(const char *nptr, char **endptr)
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.
diff --git a/Python/random.c b/Python/random.c
index a052b65..654612b 100644
--- a/Python/random.c
+++ b/Python/random.c
@@ -225,7 +225,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. */
diff --git a/Python/thread.c b/Python/thread.c
index 9eb5d12..44c071e 100644
--- a/Python/thread.c
+++ b/Python/thread.c
@@ -221,7 +221,7 @@ find_key(int set_value, int key, void *value)
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)