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

Skip to content

Commit c4099e6

Browse files
committed
# Fix strange type (methonname instead of methodname).
1 parent b58dff5 commit c4099e6

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

Python/modsupport.c

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -461,12 +461,12 @@ PyEval_CallFunction(obj, format, va_alist)
461461

462462
#ifdef HAVE_STDARG_PROTOTYPES
463463
PyObject *
464-
PyEval_CallMethod(PyObject *obj, char *methonname, char *format, ...)
464+
PyEval_CallMethod(PyObject *obj, char *methodname, char *format, ...)
465465
#else
466466
PyObject *
467-
PyEval_CallMethod(obj, methonname, format, va_alist)
467+
PyEval_CallMethod(obj, methodname, format, va_alist)
468468
PyObject *obj;
469-
char *methonname;
469+
char *methodname;
470470
char *format;
471471
va_dcl
472472
#endif
@@ -476,7 +476,7 @@ PyEval_CallMethod(obj, methonname, format, va_alist)
476476
PyObject *args;
477477
PyObject *res;
478478

479-
meth = PyObject_GetAttrString(obj, methonname);
479+
meth = PyObject_GetAttrString(obj, methodname);
480480
if (meth == NULL)
481481
return NULL;
482482

0 commit comments

Comments
 (0)