Skip to content

Commit c700d1e

Browse files
committed
fix smelly symbols
1 parent 2dfcea3 commit c700d1e

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

Modules/_functoolsmodule.c

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1286,26 +1286,26 @@ bounded_lru_cache_wrapper_pre_call_lock_held(lru_cache_object *self, PyObject *a
12861286
{
12871287
lru_list_elem *link;
12881288

1289-
PyObject *_key = *key = lru_cache_make_key(self->kwd_mark, args, kwds, self->typed);
1290-
if (!_key)
1289+
PyObject *key_ = *key = lru_cache_make_key(self->kwd_mark, args, kwds, self->typed);
1290+
if (!key_)
12911291
return -1;
1292-
Py_hash_t _hash = *hash = PyObject_Hash(_key);
1293-
if (_hash == -1) {
1294-
Py_DECREF(_key);
1292+
Py_hash_t hash_ = *hash = PyObject_Hash(key_);
1293+
if (hash_ == -1) {
1294+
Py_DECREF(key_);
12951295
return -1;
12961296
}
1297-
link = (lru_list_elem *)_PyDict_GetItem_KnownHash(self->cache, _key, _hash);
1297+
link = (lru_list_elem *)_PyDict_GetItem_KnownHash(self->cache, key_, hash_);
12981298
if (link != NULL) {
12991299
lru_cache_extract_link(link);
13001300
lru_cache_append_link(self, link);
13011301
*result = link->result;
13021302
self->hits++;
13031303
Py_INCREF(link->result);
1304-
Py_DECREF(_key);
1304+
Py_DECREF(key_);
13051305
return 1;
13061306
}
13071307
if (PyErr_Occurred()) {
1308-
Py_DECREF(_key);
1308+
Py_DECREF(key_);
13091309
return -1;
13101310
}
13111311
self->misses++;

0 commit comments

Comments
 (0)