aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTerry Jan Reedy <tjreedy@udel.edu>2013-03-11 17:45:12 -0400
committerTerry Jan Reedy <tjreedy@udel.edu>2013-03-11 17:45:12 -0400
commit09b7503bc999b2c65c9d61465cd19758ff97c0c4 (patch)
treee0dc4cbc6a25962c2fc98ba30128cb8691134739 /Modules/_heapqmodule.c
parentMerge with 3.2: Issue #17047: removed doubled words in Doc/*, (diff)
parentIssue #17047: remove doubled words found in 2.7 to 3.4 Modules/*, (diff)
downloadcpython-09b7503bc999b2c65c9d61465cd19758ff97c0c4.tar.gz
cpython-09b7503bc999b2c65c9d61465cd19758ff97c0c4.tar.bz2
cpython-09b7503bc999b2c65c9d61465cd19758ff97c0c4.zip
Merge 3.2, Issue #17047: remove doubled words found in 2.7 to 3.4
Modules/*, as reported by Serhiy Storchaka and Matthew Barnett.
Diffstat (limited to 'Modules/_heapqmodule.c')
-rw-r--r--Modules/_heapqmodule.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/Modules/_heapqmodule.c b/Modules/_heapqmodule.c
index 0fe64ce9dc4..f377e9cf6cf 100644
--- a/Modules/_heapqmodule.c
+++ b/Modules/_heapqmodule.c
@@ -116,7 +116,7 @@ _siftup(PyListObject *heap, Py_ssize_t pos)
}
}
- /* The leaf at pos is empty now. Put newitem there, and and bubble
+ /* The leaf at pos is empty now. Put newitem there, and bubble
it up to its final resting place (by sifting its parents down). */
Py_DECREF(PyList_GET_ITEM(heap, pos));
PyList_SET_ITEM(heap, pos, newitem);
@@ -456,7 +456,7 @@ _siftupmax(PyListObject *heap, Py_ssize_t pos)
childpos = 2*pos + 1;
}
- /* The leaf at pos is empty now. Put newitem there, and and bubble
+ /* The leaf at pos is empty now. Put newitem there, and bubble
it up to its final resting place (by sifting its parents down). */
Py_DECREF(PyList_GET_ITEM(heap, pos));
PyList_SET_ITEM(heap, pos, newitem);