diff options
author | Serhiy Storchaka <storchaka@gmail.com> | 2016-04-17 05:32:47 (GMT) |
---|---|---|
committer | Serhiy Storchaka <storchaka@gmail.com> | 2016-04-17 05:32:47 (GMT) |
commit | 6a7b3a77b4b2be0badd24ee5f0fdbaa2e0e79c3d (patch) | |
tree | 69e2dda76d29c6ac33906e0ad2e1359c5bc8e0e4 /Modules | |
parent | 50dd1f7dd68ed2f526adfebd5caa342e26da4517 (diff) | |
download | cpython-6a7b3a77b4b2be0badd24ee5f0fdbaa2e0e79c3d.zip cpython-6a7b3a77b4b2be0badd24ee5f0fdbaa2e0e79c3d.tar.gz cpython-6a7b3a77b4b2be0badd24ee5f0fdbaa2e0e79c3d.tar.bz2 |
Issue #26778: Fixed "a/an/and" typos in code comment and documentation.
Diffstat (limited to 'Modules')
-rw-r--r-- | Modules/_csv.c | 2 | ||||
-rw-r--r-- | Modules/_ctypes/_ctypes.c | 2 | ||||
-rw-r--r-- | Modules/_pickle.c | 2 | ||||
-rw-r--r-- | Modules/_tracemalloc.c | 2 | ||||
-rw-r--r-- | Modules/faulthandler.c | 2 | ||||
-rw-r--r-- | Modules/itertoolsmodule.c | 2 |
6 files changed, 6 insertions, 6 deletions
diff --git a/Modules/_csv.c b/Modules/_csv.c index d6f2ca8..101f449 100644 --- a/Modules/_csv.c +++ b/Modules/_csv.c @@ -731,7 +731,7 @@ parse_process_char(ReaderObj *self, Py_UCS4 c) break; case QUOTE_IN_QUOTED_FIELD: - /* doublequote - seen a quote in an quoted field */ + /* doublequote - seen a quote in a quoted field */ if (dialect->quoting != QUOTE_NONE && c == dialect->quotechar) { /* save "" as " */ diff --git a/Modules/_ctypes/_ctypes.c b/Modules/_ctypes/_ctypes.c index 7e20301..9426128 100644 --- a/Modules/_ctypes/_ctypes.c +++ b/Modules/_ctypes/_ctypes.c @@ -3802,7 +3802,7 @@ PyCFuncPtr_call(PyCFuncPtrObject *self, PyObject *inargs, PyObject *kwds) return NULL; } /* there should be more checks? No, in Python */ - /* First arg is an pointer to an interface instance */ + /* First arg is a pointer to an interface instance */ if (!this->b_ptr || *(void **)this->b_ptr == NULL) { PyErr_SetString(PyExc_ValueError, "NULL COM pointer access"); diff --git a/Modules/_pickle.c b/Modules/_pickle.c index 78cfe20..47977ec 100644 --- a/Modules/_pickle.c +++ b/Modules/_pickle.c @@ -4629,7 +4629,7 @@ calc_binsize(char *bytes, int nbytes) /* s contains x bytes of a little-endian integer. Return its value as a * C int. Obscure: when x is 1 or 2, this is an unsigned little-endian - * int, but when x is 4 it's a signed one. This is an historical source + * int, but when x is 4 it's a signed one. This is a historical source * of x-platform bugs. */ static long diff --git a/Modules/_tracemalloc.c b/Modules/_tracemalloc.c index 60c1b06..796ac0f 100644 --- a/Modules/_tracemalloc.c +++ b/Modules/_tracemalloc.c @@ -519,7 +519,7 @@ tracemalloc_realloc(void *ctx, void *ptr, size_t new_size) the caller, because realloc() may already have shrinked the memory block and so removed bytes. - This case is very unlikely: an hash entry has just been + This case is very unlikely: a hash entry has just been released, so the hash table should have at least one free entry. The GIL and the table lock ensures that only one thread is diff --git a/Modules/faulthandler.c b/Modules/faulthandler.c index 9485e24..f1fda48 100644 --- a/Modules/faulthandler.c +++ b/Modules/faulthandler.c @@ -1051,7 +1051,7 @@ static PyMethodDef module_methods[] = { {"register", (PyCFunction)faulthandler_register_py, METH_VARARGS|METH_KEYWORDS, PyDoc_STR("register(signum, file=sys.stderr, all_threads=True, chain=False): " - "register an handler for the signal 'signum': dump the " + "register a handler for the signal 'signum': dump the " "traceback of the current thread, or of all threads if " "all_threads is True, into file")}, {"unregister", diff --git a/Modules/itertoolsmodule.c b/Modules/itertoolsmodule.c index 781fbcd..409922a 100644 --- a/Modules/itertoolsmodule.c +++ b/Modules/itertoolsmodule.c @@ -4483,7 +4483,7 @@ static PyMethodDef zip_longest_methods[] = { PyDoc_STRVAR(zip_longest_doc, "zip_longest(iter1 [,iter2 [...]], [fillvalue=None]) --> zip_longest object\n\ \n\ -Return an zip_longest object whose .__next__() method returns a tuple where\n\ +Return a zip_longest object whose .__next__() method returns a tuple where\n\ the i-th element comes from the i-th iterable argument. The .__next__()\n\ method continues until the longest iterable in the argument sequence\n\ is exhausted and then it raises StopIteration. When the shorter iterables\n\ |