summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBenjamin Peterson <benjamin@python.org>2009-05-08 03:27:59 +0000
committerBenjamin Peterson <benjamin@python.org>2009-05-08 03:27:59 +0000
commit01e9c765d776b35f54c513ca68745e27c0252498 (patch)
tree6a17f1459476529c0125076e15358363b45536f8
parent6d0b44f1d8d7da28afbc3ed3fb1a50164747a6b8 (diff)
downloadcpython-01e9c765d776b35f54c513ca68745e27c0252498.tar.gz
this is now a bound method
-rw-r--r--Objects/object.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/Objects/object.c b/Objects/object.c
index d8fc91e38f..9544b9ac08 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;