diff options
author | Thomas Wouters <thomas@python.org> | 2000-07-16 12:04:32 +0000 |
---|---|---|
committer | Thomas Wouters <thomas@python.org> | 2000-07-16 12:04:32 +0000 |
commit | 7e47402264cf87b9bbb61fc9ff610af08add7c7b (patch) | |
tree | 8103f0f2df8ca09de0b8cfd9d38b4982c6993f16 /Objects/stringobject.c | |
parent | c533e4a01207f74b9c4f9a7414631a3c7b711595 (diff) | |
download | cpython-git-7e47402264cf87b9bbb61fc9ff610af08add7c7b.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 'Objects/stringobject.c')
-rw-r--r-- | Objects/stringobject.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/Objects/stringobject.c b/Objects/stringobject.c index ab44e91f2d..80b9defaae 100644 --- a/Objects/stringobject.c +++ b/Objects/stringobject.c @@ -283,7 +283,7 @@ string_print(PyStringObject *op, FILE *fp, int flags) return 0; } - /* figure out which quote to use; single is prefered */ + /* figure out which quote to use; single is preferred */ quote = '\''; if (strchr(op->ob_sval, '\'') && !strchr(op->ob_sval, '"')) quote = '"'; @@ -321,7 +321,7 @@ string_repr(register PyStringObject *op) register char *p; int quote; - /* figure out which quote to use; single is prefered */ + /* figure out which quote to use; single is preferred */ quote = '\''; if (strchr(op->ob_sval, '\'') && !strchr(op->ob_sval, '"')) quote = '"'; @@ -1416,10 +1416,10 @@ mymemcnt(const char *mem, int len, const char *pat, int pat_len) /* mymemreplace - Return a string in which all occurences of PAT in memory STR are + Return a string in which all occurrences of PAT in memory STR are replaced with SUB. - If length of PAT is less than length of STR or there are no occurences + If length of PAT is less than length of STR or there are no occurrences of PAT in STR, then the original string is returned. Otherwise, a new string is allocated here and returned. @@ -1689,7 +1689,7 @@ string_expandtabs(PyStringObject *self, PyObject *args) if (!PyArg_ParseTuple(args, "|i:expandtabs", &tabsize)) return NULL; - /* First pass: determine size of ouput string */ + /* First pass: determine size of output string */ i = j = 0; e = PyString_AS_STRING(self) + PyString_GET_SIZE(self); for (p = PyString_AS_STRING(self); p < e; p++) |