summaryrefslogtreecommitdiffstats
path: root/Objects
diff options
context:
space:
mode:
authorMartin Panter <vadmium+py@gmail.com>2016-04-15 02:27:11 (GMT)
committerMartin Panter <vadmium+py@gmail.com>2016-04-15 02:27:11 (GMT)
commitcda80940ed444d01beed797dcd86c207f11104bc (patch)
tree7beaa1c4db9c2e8351a9cf8ddda6a656900d4275 /Objects
parent8ca020e1cc2590472ba83611727ae20d9f34bfe5 (diff)
parent20d325574eaa4f2a88036eac81e8d3cf9135372f (diff)
downloadcpython-cda80940ed444d01beed797dcd86c207f11104bc.zip
cpython-cda80940ed444d01beed797dcd86c207f11104bc.tar.gz
cpython-cda80940ed444d01beed797dcd86c207f11104bc.tar.bz2
Issue #15984: Merge PyUnicode doc from 3.5
Diffstat (limited to 'Objects')
-rw-r--r--Objects/codeobject.c2
-rw-r--r--Objects/unicodeobject.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/Objects/codeobject.c b/Objects/codeobject.c
index e3d28e3..f089f75 100644
--- a/Objects/codeobject.c
+++ b/Objects/codeobject.c
@@ -520,7 +520,7 @@ _PyCode_ConstantKey(PyObject *op)
return key;
}
else {
- /* for other types, use the object identifier as an unique identifier
+ /* for other types, use the object identifier as a unique identifier
* to ensure that they are seen as unequal. */
PyObject *obj_id = PyLong_FromVoidPtr(op);
if (obj_id == NULL)
diff --git a/Objects/unicodeobject.c b/Objects/unicodeobject.c
index d3bb13a..f1de3d5 100644
--- a/Objects/unicodeobject.c
+++ b/Objects/unicodeobject.c
@@ -850,7 +850,7 @@ Py_LOCAL_INLINE(Py_ssize_t) findchar(const void *s, int kind,
}
#ifdef Py_DEBUG
-/* Fill the data of an Unicode string with invalid characters to detect bugs
+/* Fill the data of a Unicode string with invalid characters to detect bugs
earlier.
_PyUnicode_CheckConsistency(str, 1) detects invalid characters, at least for