mirror of
https://github.com/python/cpython.git
synced 2025-08-01 23:53:15 +00:00
Fix spelling.
This commit is contained in:
parent
e52f3b1e56
commit
d0814eb7fe
1 changed files with 2 additions and 2 deletions
|
@ -109,7 +109,7 @@ deque_pop(dequeobject *deque, PyObject *unused)
|
||||||
block *prevblock;
|
block *prevblock;
|
||||||
|
|
||||||
if (deque->len == 0) {
|
if (deque->len == 0) {
|
||||||
PyErr_SetString(PyExc_LookupError, "pop from an emtpy deque");
|
PyErr_SetString(PyExc_LookupError, "pop from an empty deque");
|
||||||
return NULL;
|
return NULL;
|
||||||
}
|
}
|
||||||
item = deque->rightblock->data[deque->rightindex];
|
item = deque->rightblock->data[deque->rightindex];
|
||||||
|
@ -144,7 +144,7 @@ deque_popleft(dequeobject *deque, PyObject *unused)
|
||||||
block *prevblock;
|
block *prevblock;
|
||||||
|
|
||||||
if (deque->len == 0) {
|
if (deque->len == 0) {
|
||||||
PyErr_SetString(PyExc_LookupError, "pop from an emtpy deque");
|
PyErr_SetString(PyExc_LookupError, "pop from an empty deque");
|
||||||
return NULL;
|
return NULL;
|
||||||
}
|
}
|
||||||
item = deque->leftblock->data[deque->leftindex];
|
item = deque->leftblock->data[deque->leftindex];
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue