this is now a bound method

This commit is contained in:
Benjamin Peterson 2009-05-08 03:27:59 +00:00
parent 224205fde2
commit da136967e9
1 changed files with 1 additions and 1 deletions

View File

@ -484,7 +484,7 @@ PyObject_Bytes(PyObject *v)
func = _PyObject_LookupSpecial(v, "__bytes__", &bytesstring);
if (func != NULL) {
result = PyObject_CallFunctionObjArgs(func, v, NULL);
result = PyObject_CallFunctionObjArgs(func, NULL);
Py_DECREF(func);
if (result == NULL)
return NULL;