merge 3.4

This commit is contained in:
Benjamin Peterson 2014-06-26 23:29:19 -07:00
commit 3cbae68de6
1 changed files with 6 additions and 9 deletions

View File

@ -2205,9 +2205,8 @@ PyObject_CallMethod(PyObject *o, const char *name, const char *format, ...)
return null_error();
func = PyObject_GetAttrString(o, name);
if (func == NULL) {
return 0;
}
if (func == NULL)
return NULL;
va_start(va, format);
retval = callmethod(func, format, va, 0);
@ -2227,9 +2226,8 @@ _PyObject_CallMethodId(PyObject *o, _Py_Identifier *name,
return null_error();
func = _PyObject_GetAttrId(o, name);
if (func == NULL) {
return 0;
}
if (func == NULL)
return NULL;
va_start(va, format);
retval = callmethod(func, format, va, 0);
@ -2249,9 +2247,8 @@ _PyObject_CallMethod_SizeT(PyObject *o, const char *name,
return null_error();
func = PyObject_GetAttrString(o, name);
if (func == NULL) {
return 0;
}
if (func == NULL)
return NULL;
va_start(va, format);
retval = callmethod(func, format, va, 1);
va_end(va);