summaryrefslogtreecommitdiff
path: root/Python/codecs.c
diff options
context:
space:
mode:
authorThomas Wouters <thomas@python.org>2000-07-16 12:04:32 +0000
committerThomas Wouters <thomas@python.org>2000-07-16 12:04:32 +0000
commit764fa07469563f448c0ab6a20dad3943e4231ce5 (patch)
tree44b099de81d99a0e892ef5afbf5f49abf2dd98aa /Python/codecs.c
parent68d8117162e83550ba7f5c949f6fbea19d1d3cc0 (diff)
downloadcpython-764fa07469563f448c0ab6a20dad3943e4231ce5.tar.gz
Spelling fixes supplied by Rob W. W. Hooft. All these are fixes in either
comments, docstrings or error messages. I fixed two minor things in test_winreg.py ("didn't" -> "Didn't" and "Didnt" -> "Didn't"). There is a minor style issue involved: Guido seems to have preferred English grammar (behaviour, honour) in a couple places. This patch changes that to American, which is the more prominent style in the source. I prefer English myself, so if English is preferred, I'd be happy to supply a patch myself ;)
Diffstat (limited to 'Python/codecs.c')
-rw-r--r--Python/codecs.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/Python/codecs.c b/Python/codecs.c
index 27331ab66b..20791f50fc 100644
--- a/Python/codecs.c
+++ b/Python/codecs.c
@@ -146,7 +146,7 @@ PyObject *_PyCodec_Lookup(const char *encoding)
}
/* Convert the encoding to a normalized Python string: all
- characters are converted to lower case, spaces and hypens are
+ characters are converted to lower case, spaces and hyphens are
replaced with underscores. */
v = normalizestring(encoding);
if (v == NULL)
@@ -427,7 +427,7 @@ void _PyCodecRegistry_Init()
_PyCodec_SearchCache = PyDict_New();
if (_PyCodec_SearchPath == NULL ||
_PyCodec_SearchCache == NULL)
- Py_FatalError("can't intialize codec registry");
+ Py_FatalError("can't initialize codec registry");
}
void _PyCodecRegistry_Fini()