From da136967e9a0d1e742865007b5e1fdc051dbc959 Mon Sep 17 00:00:00 2001 From: Benjamin Peterson Date: Fri, 8 May 2009 03:27:59 +0000 Subject: this is now a bound method --- Objects/object.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Objects/object.c b/Objects/object.c index d8fc91e..9544b9a 100644 --- a/Objects/object.c +++ b/Objects/object.c @@ -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; -- cgit v0.12