summaryrefslogtreecommitdiffstats
path: root/Objects/unicodeobject.c
diff options
context:
space:
mode:
authorFred Drake <fdrake@acm.org>2005-10-28 14:39:47 (GMT)
committerFred Drake <fdrake@acm.org>2005-10-28 14:39:47 (GMT)
commitdb390c1ad8e2c8049e1d0d3828a979c75d1621b9 (patch)
tree110d3485f390abc738015ff6eb071a310febe856 /Objects/unicodeobject.c
parentf3396542806e9c6d1dfafda5d1e53296d3d1af09 (diff)
downloadcpython-db390c1ad8e2c8049e1d0d3828a979c75d1621b9.zip
cpython-db390c1ad8e2c8049e1d0d3828a979c75d1621b9.tar.gz
cpython-db390c1ad8e2c8049e1d0d3828a979c75d1621b9.tar.bz2
fix typos, mostly in comments
Diffstat (limited to 'Objects/unicodeobject.c')
-rw-r--r--Objects/unicodeobject.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/Objects/unicodeobject.c b/Objects/unicodeobject.c
index db2a690..cac6a2d 100644
--- a/Objects/unicodeobject.c
+++ b/Objects/unicodeobject.c
@@ -734,7 +734,7 @@ int PyUnicode_SetDefaultEncoding(const char *encoding)
/* error handling callback helper:
build arguments, call the callback and check the arguments,
- if no exception occured, copy the replacement to the output
+ if no exception occurred, copy the replacement to the output
and adjust various state variables.
return 0 on success, -1 on error
*/
@@ -2987,7 +2987,7 @@ PyObject *PyUnicode_DecodeCharmap(const char *s,
/* Lookup the character ch in the mapping. If the character
can't be found, Py_None is returned (or NULL, if another
- error occured). */
+ error occurred). */
static PyObject *charmapencode_lookup(Py_UNICODE c, PyObject *mapping)
{
PyObject *w = PyInt_FromLong((long)c);