Skip to content

Commit 6f8d459

Browse files
committed
remove unnecessary Py_BuildValue()
1 parent 62b5d21 commit 6f8d459

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Modules/_typesmodule.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ _types_lookup_special_method_impl(PyObject *self, PyObject *args)
3333
Py_RETURN_NONE;
3434
}
3535
PyObject *method = PyStackRef_AsPyObjectSteal(method_and_self[0]);
36-
return Py_BuildValue("O", method);
36+
return method;
3737
}
3838

3939
static int

0 commit comments

Comments
 (0)