diff options
author | Serhiy Storchaka <storchaka@gmail.com> | 2014-12-01 16:16:30 (GMT) |
---|---|---|
committer | Serhiy Storchaka <storchaka@gmail.com> | 2014-12-01 16:16:30 (GMT) |
commit | 0f8f784a77a51dc3ceac8c812177bff33bced830 (patch) | |
tree | 55227dc28b9e1fc5c85650a5604d28c52e32e70f /Python | |
parent | d862db0d091a3bb95c185d7365384b8bd22f59be (diff) | |
download | cpython-0f8f784a77a51dc3ceac8c812177bff33bced830.zip cpython-0f8f784a77a51dc3ceac8c812177bff33bced830.tar.gz cpython-0f8f784a77a51dc3ceac8c812177bff33bced830.tar.bz2 |
Removed duplicated words in in comments and docs.
Diffstat (limited to 'Python')
-rw-r--r-- | Python/pystrtod.c | 2 | ||||
-rw-r--r-- | Python/random.c | 2 | ||||
-rw-r--r-- | Python/thread.c | 2 |
3 files changed, 3 insertions, 3 deletions
diff --git a/Python/pystrtod.c b/Python/pystrtod.c index 859af43..ae6ab9c 100644 --- a/Python/pystrtod.c +++ b/Python/pystrtod.c @@ -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. diff --git a/Python/random.c b/Python/random.c index 0776bfc..1e5776d 100644 --- a/Python/random.c +++ b/Python/random.c @@ -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. */ diff --git a/Python/thread.c b/Python/thread.c index dd333e8..c54670d 100644 --- a/Python/thread.c +++ b/Python/thread.c @@ -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) |