Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 3cbae68

Browse files
committed
merge 3.4
2 parents 7722769 + 1791c22 commit 3cbae68

1 file changed

Lines changed: 6 additions & 9 deletions

File tree

Objects/abstract.c

Lines changed: 6 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -2205,9 +2205,8 @@ PyObject_CallMethod(PyObject *o, const char *name, const char *format, ...)
22052205
return null_error();
22062206

22072207
func = PyObject_GetAttrString(o, name);
2208-
if (func == NULL) {
2209-
return 0;
2210-
}
2208+
if (func == NULL)
2209+
return NULL;
22112210

22122211
va_start(va, format);
22132212
retval = callmethod(func, format, va, 0);
@@ -2227,9 +2226,8 @@ _PyObject_CallMethodId(PyObject *o, _Py_Identifier *name,
22272226
return null_error();
22282227

22292228
func = _PyObject_GetAttrId(o, name);
2230-
if (func == NULL) {
2231-
return 0;
2232-
}
2229+
if (func == NULL)
2230+
return NULL;
22332231

22342232
va_start(va, format);
22352233
retval = callmethod(func, format, va, 0);
@@ -2249,9 +2247,8 @@ _PyObject_CallMethod_SizeT(PyObject *o, const char *name,
22492247
return null_error();
22502248

22512249
func = PyObject_GetAttrString(o, name);
2252-
if (func == NULL) {
2253-
return 0;
2254-
}
2250+
if (func == NULL)
2251+
return NULL;
22552252
va_start(va, format);
22562253
retval = callmethod(func, format, va, 1);
22572254
va_end(va);

0 commit comments

Comments
 (0)