]> granicus.if.org Git - python/commitdiff
this is now a bound method
authorBenjamin Peterson <benjamin@python.org>
Fri, 8 May 2009 03:27:59 +0000 (03:27 +0000)
committerBenjamin Peterson <benjamin@python.org>
Fri, 8 May 2009 03:27:59 +0000 (03:27 +0000)
Objects/object.c

index d8fc91e38fedbda57b6a5c932886b61602a85714..9544b9ac08779e8d71aa7a9f94bfd95bfa34f5a6 100644 (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;