Avoid calling functions with an empty string as format string
Directly pass NULL rather than an empty string.
diff --git a/Python/traceback.c b/Python/traceback.c
index b33156e..e8aac1b 100644
--- a/Python/traceback.c
+++ b/Python/traceback.c
@@ -314,7 +314,7 @@
if (fob == NULL) {
PyErr_Clear();
- res = _PyObject_CallMethodId(binary, &PyId_close, "");
+ res = _PyObject_CallMethodId(binary, &PyId_close, NULL);
Py_DECREF(binary);
if (res)
Py_DECREF(res);
@@ -334,7 +334,7 @@
break;
}
}
- res = _PyObject_CallMethodId(fob, &PyId_close, "");
+ res = _PyObject_CallMethodId(fob, &PyId_close, NULL);
if (res)
Py_DECREF(res);
else