Skip to content

Commit 33be667

Browse files
committed
i forgot that Py_Is was only 3.10+
1 parent 1c27889 commit 33be667

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/mod.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -154,7 +154,7 @@ static PyObject* force_update_locals(PyObject* self, PyObject* args) {
154154
Py_INCREF(target);
155155

156156
for (int i = 0; i < PyDict_GET_SIZE(f->f_locals); i++) {
157-
if (Py_Is(f->f_localsplus[i], target)) {
157+
if (f->f_localsplus[i] == target) {
158158
Py_DECREF(f->f_localsplus[i]);
159159
f->f_localsplus[i] = value;
160160
Py_INCREF(value);

0 commit comments

Comments
 (0)