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

Skip to content

Commit a9040ec

Browse files
committed
Renamed a local variable from 'PyCFunction' (which is also a typedef
in methodobject.h) to 'func'. /bin/cc on SunOS 4.x didn't grok this.
1 parent 59943ba commit a9040ec

1 file changed

Lines changed: 6 additions & 6 deletions

File tree

Objects/abstract.c

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1034,7 +1034,7 @@ PyObject_CallMethod(va_alist) va_dcl
10341034
#endif
10351035
{
10361036
va_list va;
1037-
PyObject *args, *PyCFunction=0, *retval;
1037+
PyObject *args, *func=0, *retval;
10381038
#ifdef HAVE_STDARG_PROTOTYPES
10391039
va_start(va, format);
10401040
#else
@@ -1053,15 +1053,15 @@ PyObject_CallMethod(va_alist) va_dcl
10531053
return Py_ReturnNullError();
10541054
}
10551055

1056-
PyCFunction=PyObject_GetAttrString(o,name);
1057-
if(! PyCFunction)
1056+
func=PyObject_GetAttrString(o,name);
1057+
if(! func)
10581058
{
10591059
va_end(va);
10601060
PyErr_SetString(PyExc_AttributeError,name);
10611061
return 0;
10621062
}
10631063

1064-
if(! (PyCallable_Check(PyCFunction)))
1064+
if(! (PyCallable_Check(func)))
10651065
{
10661066
va_end(va);
10671067
PyErr_SetString(PyExc_TypeError,"call of non-callable attribute");
@@ -1086,9 +1086,9 @@ PyObject_CallMethod(va_alist) va_dcl
10861086
args=a;
10871087
}
10881088

1089-
retval = PyObject_CallObject(PyCFunction,args);
1089+
retval = PyObject_CallObject(func,args);
10901090
Py_DECREF(args);
1091-
Py_DECREF(PyCFunction);
1091+
Py_DECREF(func);
10921092
return retval;
10931093
}
10941094

0 commit comments

Comments
 (0)