diff options
author | Raymond Hettinger <python@rcn.com> | 2016-08-30 17:47:49 (GMT) |
---|---|---|
committer | Raymond Hettinger <python@rcn.com> | 2016-08-30 17:47:49 (GMT) |
commit | 15f44ab043b37c064d6891c7864205fed9fb0dd1 (patch) | |
tree | 726736587da36fbfebc1dfb12c4d9c14e6bf9a61 /Python | |
parent | 613debcf0a0409b49ad4e1ee63dfc73119029755 (diff) | |
download | cpython-15f44ab043b37c064d6891c7864205fed9fb0dd1.zip cpython-15f44ab043b37c064d6891c7864205fed9fb0dd1.tar.gz cpython-15f44ab043b37c064d6891c7864205fed9fb0dd1.tar.bz2 |
Issue #27895: Spelling fixes (Contributed by Ville Skyttä).
Diffstat (limited to 'Python')
-rw-r--r-- | Python/ceval.c | 12 | ||||
-rw-r--r-- | Python/condvar.h | 2 | ||||
-rw-r--r-- | Python/formatter_unicode.c | 2 |
3 files changed, 8 insertions, 8 deletions
diff --git a/Python/ceval.c b/Python/ceval.c index 00d52b4..5a542f0 100644 --- a/Python/ceval.c +++ b/Python/ceval.c @@ -2090,16 +2090,16 @@ PyEval_EvalFrameEx(PyFrameObject *f, int throwflag) TARGET(YIELD_FROM) { PyObject *v = POP(); - PyObject *reciever = TOP(); + PyObject *receiver = TOP(); int err; - if (PyGen_CheckExact(reciever) || PyCoro_CheckExact(reciever)) { - retval = _PyGen_Send((PyGenObject *)reciever, v); + if (PyGen_CheckExact(receiver) || PyCoro_CheckExact(receiver)) { + retval = _PyGen_Send((PyGenObject *)receiver, v); } else { _Py_IDENTIFIER(send); if (v == Py_None) - retval = Py_TYPE(reciever)->tp_iternext(reciever); + retval = Py_TYPE(receiver)->tp_iternext(receiver); else - retval = _PyObject_CallMethodIdObjArgs(reciever, &PyId_send, v, NULL); + retval = _PyObject_CallMethodIdObjArgs(receiver, &PyId_send, v, NULL); } Py_DECREF(v); if (retval == NULL) { @@ -2110,7 +2110,7 @@ PyEval_EvalFrameEx(PyFrameObject *f, int throwflag) err = _PyGen_FetchStopIterationValue(&val); if (err < 0) goto error; - Py_DECREF(reciever); + Py_DECREF(receiver); SET_TOP(val); DISPATCH(); } diff --git a/Python/condvar.h b/Python/condvar.h index bb5b1b6..ced910f 100644 --- a/Python/condvar.h +++ b/Python/condvar.h @@ -238,7 +238,7 @@ _PyCOND_WAIT_MS(PyCOND_T *cv, PyMUTEX_T *cs, DWORD ms) cv->waiting++; PyMUTEX_UNLOCK(cs); /* "lost wakeup bug" would occur if the caller were interrupted here, - * but we are safe because we are using a semaphore wich has an internal + * but we are safe because we are using a semaphore which has an internal * count. */ wait = WaitForSingleObjectEx(cv->sem, ms, FALSE); diff --git a/Python/formatter_unicode.c b/Python/formatter_unicode.c index 929884c..db9f5b8 100644 --- a/Python/formatter_unicode.c +++ b/Python/formatter_unicode.c @@ -121,7 +121,7 @@ typedef struct { } InternalFormatSpec; #if 0 -/* Occassionally useful for debugging. Should normally be commented out. */ +/* Occasionally useful for debugging. Should normally be commented out. */ static void DEBUG_PRINT_FORMAT_SPEC(InternalFormatSpec *format) { |