mirror of
https://github.com/python/cpython.git
synced 2025-08-04 08:59:19 +00:00
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:
parent
c533e4a012
commit
7e47402264
102 changed files with 184 additions and 184 deletions
|
@ -1077,7 +1077,7 @@ static int instance_contains(PyInstanceObject *inst, PyObject *member)
|
|||
}
|
||||
func = instance_getattr(inst, __contains__);
|
||||
if(func == NULL) {
|
||||
/* fall back to previous behaviour */
|
||||
/* fall back to previous behavior */
|
||||
int i, cmp_res;
|
||||
|
||||
if(!PyErr_ExceptionMatches(PyExc_AttributeError))
|
||||
|
@ -1160,7 +1160,7 @@ PyInstance_DoBinOp(PyObject *v, PyObject *w, char *opname, char *ropname,
|
|||
return result;
|
||||
if (halfbinop(w, v, ropname, &result, thisfunc, 1) <= 0)
|
||||
return result;
|
||||
/* Sigh -- special case for comnparisons */
|
||||
/* Sigh -- special case for comparisons */
|
||||
if (strcmp(opname, "__cmp__") == 0) {
|
||||
long c = (v < w) ? -1 : (v > w) ? 1 : 0;
|
||||
return PyInt_FromLong(c);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue