summaryrefslogtreecommitdiffstats
path: root/Objects
diff options
context:
space:
mode:
authorMin ho Kim <minho42@gmail.com>2019-07-30 22:16:13 (GMT)
committerTerry Jan Reedy <tjreedy@udel.edu>2019-07-30 22:16:13 (GMT)
commitc4cacc8c5eab50db8da3140353596f38a01115ca (patch)
tree9198db7e2525d0f113823faee4b6d4ac7136a633 /Objects
parent0acb646b8e405864224bfd6d7d5089980dea63ac (diff)
downloadcpython-c4cacc8c5eab50db8da3140353596f38a01115ca.zip
cpython-c4cacc8c5eab50db8da3140353596f38a01115ca.tar.gz
cpython-c4cacc8c5eab50db8da3140353596f38a01115ca.tar.bz2
Fix typos in comments, docs and test names (#15018)
* Fix typos in comments, docs and test names * Update test_pyparse.py account for change in string length * Apply suggestion: splitable -> splittable Co-Authored-By: Terry Jan Reedy <tjreedy@udel.edu> * Apply suggestion: splitable -> splittable Co-Authored-By: Terry Jan Reedy <tjreedy@udel.edu> * Apply suggestion: Dealloccte -> Deallocate Co-Authored-By: Terry Jan Reedy <tjreedy@udel.edu> * Update posixmodule checksum. * Reverse idlelib changes.
Diffstat (limited to 'Objects')
-rw-r--r--Objects/exceptions.c2
-rw-r--r--Objects/object.c2
-rw-r--r--Objects/stringlib/unicode_format.h2
-rw-r--r--Objects/typeobject.c2
4 files changed, 4 insertions, 4 deletions
diff --git a/Objects/exceptions.c b/Objects/exceptions.c
index 568d495..ef9dd51 100644
--- a/Objects/exceptions.c
+++ b/Objects/exceptions.c
@@ -405,7 +405,7 @@ static PyTypeObject _PyExc_BaseException = {
BaseException_new, /* tp_new */
};
/* the CPython API expects exceptions to be (PyObject *) - both a hold-over
-from the previous implmentation and also allowing Python objects to be used
+from the previous implementation and also allowing Python objects to be used
in the API */
PyObject *PyExc_BaseException = (PyObject *)&_PyExc_BaseException;
diff --git a/Objects/object.c b/Objects/object.c
index ee20506..7f2c23a 100644
--- a/Objects/object.c
+++ b/Objects/object.c
@@ -2072,7 +2072,7 @@ _PyTrash_thread_deposit_object(PyObject *op)
tstate->trash_delete_later = op;
}
-/* Dealloccate all the objects in the _PyTrash_delete_later list. Called when
+/* Deallocate all the objects in the _PyTrash_delete_later list. Called when
* the call-stack unwinds again.
*/
void
diff --git a/Objects/stringlib/unicode_format.h b/Objects/stringlib/unicode_format.h
index ddf1e26..b526ad2 100644
--- a/Objects/stringlib/unicode_format.h
+++ b/Objects/stringlib/unicode_format.h
@@ -828,7 +828,7 @@ output_markup(SubString *field_name, SubString *format_spec,
tmp = NULL;
}
- /* if needed, recurively compute the format_spec */
+ /* if needed, recursively compute the format_spec */
if (format_spec_needs_expanding) {
tmp = build_string(format_spec, args, kwargs, recursion_depth-1,
auto_number);
diff --git a/Objects/typeobject.c b/Objects/typeobject.c
index 8acf678..9e5709a 100644
--- a/Objects/typeobject.c
+++ b/Objects/typeobject.c
@@ -1369,7 +1369,7 @@ PyType_IsSubtype(PyTypeObject *a, PyTypeObject *b)
return 0;
}
else
- /* a is not completely initilized yet; follow tp_base */
+ /* a is not completely initialized yet; follow tp_base */
return type_is_subtype_base_chain(a, b);
}