Skip to content

Commit 9ec6aa4

Browse files
committed
Cleanup
1 parent 7596d95 commit 9ec6aa4

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

Modules/_functoolsmodule.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1088,7 +1088,7 @@ bounded_lru_cache_wrapper(lru_cache_object *self, PyObject *args, PyObject *kwds
10881088
We created one other reference when the link was created.
10891089
The linked list only has borrowed references. */
10901090
if (_PyDict_Pop_KnownHash((PyDictObject*)self->cache, link->key,
1091-
link->hash, Py_None, &popresult) < 0) {
1091+
link->hash, Py_None, &popresult) < 0) {
10921092
/* An error arose while trying to remove the oldest key (the one
10931093
being evicted) from the cache. We restore the link to its
10941094
original position as the oldest link. Then we allow the

Modules/_threadmodule.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -969,6 +969,7 @@ local_clear(localobject *self)
969969
if (tstate->dict) {
970970
PyObject *v;
971971
if (PyDict_Pop(tstate->dict, self->key, Py_None, &v) < 0) {
972+
// Silently ignore error
972973
PyErr_Clear();
973974
}
974975
else {

0 commit comments

Comments
 (0)