diff Python/codecs.c @ 13620:5b727ab37092 legacy-trunk

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 ;)
author Thomas Wouters <thomas@python.org>
date Sun, 16 Jul 2000 12:04:32 +0000
parents 63d2887baf11
children f79434ee41fa
line wrap: on
line diff
--- a/Python/codecs.c	Sun Jul 16 11:57:20 2000 +0000
+++ b/Python/codecs.c	Sun Jul 16 12:04:32 2000 +0000
@@ -146,7 +146,7 @@
     }
 
     /* 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 @@
 	_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()