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 ;)
This commit is contained in:
Thomas Wouters 2000-07-16 12:04:32 +00:00
parent c533e4a012
commit 7e47402264
102 changed files with 184 additions and 184 deletions

View file

@ -2769,7 +2769,7 @@ build_class(methods, bases, name)
/* Call the base's *type*, if it is callable.
This code is a hook for Donald Beaudry's
and Jim Fulton's type extensions. In
unexended Python it will never be triggered
unextended Python it will never be triggered
since its types are not callable.
Ditto: call the bases's *class*, if it has
one. This makes the same thing possible

View file

@ -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()

View file

@ -189,7 +189,7 @@ dl_funcptr _PyImport_GetDynLoadFunc(const char *fqname, const char *shortname,
/*
-- Invoke load() with L_NOAUTODEFER leaving the imported symbols
-- of the shared module unresolved. Thus we have to resolve them
-- explicitely with loadbind. The new module is loaded, then we
-- explicitly with loadbind. The new module is loaded, then we
-- resolve its symbols using the list of already loaded modules
-- (only those that belong to the python executable). Get these
-- with loadquery(L_GETINFO).

View file

@ -162,7 +162,7 @@ dl_funcptr _PyImport_GetDynLoadFunc(const char *fqname, const char *shortname,
return NULL;
}
if (!NSIsSymbolNameDefined(funcname)) {
/* UnlinkModule() isn't implimented in current versions, but calling it does no harm */
/* UnlinkModule() isn't implemented in current versions, but calling it does no harm */
NSUnLinkModule(newModule, FALSE);
PyErr_Format(PyExc_ImportError,
"Loaded module does not contain symbol %.200s",

View file

@ -183,7 +183,7 @@ static PyObject* get_self(PyObject* args)
{
PyObject* self = PyTuple_GetItem(args, 0);
if (!self) {
/* Watch out for being called to early in the bootstapping process */
/* Watch out for being called to early in the bootstrapping process */
if (PyExc_TypeError) {
PyErr_SetString(PyExc_TypeError,
"unbound method must be called with class instance 1st argument");

View file

@ -13,7 +13,7 @@ redistribution of this file, and for a DISCLAIMER OF ALL WARRANTIES.
/* XXX There are several unchecked sprintf or strcat calls in this file.
XXX The only way these can become a danger is if some C code in the
XXX Python source (or in an extension) uses ridiculously long names
XXX or riduculously deep nesting in format strings. */
XXX or ridiculously deep nesting in format strings. */
#include "Python.h"

View file

@ -75,7 +75,7 @@ int Py_UnicodeFlag = 0; /* Needed by compile.c */
static int initialized = 0;
/* API to access the initialized flag -- useful for eroteric use */
/* API to access the initialized flag -- useful for esoteric use */
int
Py_IsInitialized()

View file

@ -69,7 +69,7 @@ double strtod(str, ptr)
register char *sp, *dp;
register int c;
char *buforg, *buflim;
char buffer[64]; /* 45-digit significand + */
char buffer[64]; /* 45-digit significant + */
/* 13-digit exponent */
sp = str;
while (*sp == ' ') sp++;

View file

@ -13,7 +13,7 @@ redistribution of this file, and for a DISCLAIMER OF ALL WARRANTIES.
#include <lwp/stackdep.h>
#define STACKSIZE 1000 /* stacksize for a thread */
#define NSTACKS 2 /* # stacks to be put in cache initialy */
#define NSTACKS 2 /* # stacks to be put in cache initially */
struct lock {
int lock_locked;

View file

@ -122,7 +122,7 @@ PyThread_type_lock PyThread_allocate_lock(void)
PyThread_init_thread();
DosCreateMutexSem(NULL, /* Sem name */
&aLock, /* the semaphone */
&aLock, /* the semaphore */
0, /* shared ? */
0); /* initial state */