summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBenjamin Peterson <benjamin@python.org>2009-05-08 03:27:59 (GMT)
committerBenjamin Peterson <benjamin@python.org>2009-05-08 03:27:59 (GMT)
commitda136967e9a0d1e742865007b5e1fdc051dbc959 (patch)
treeb5a2713cd2f52e7c6fa3859448cf6aca3c64b25f
parent224205fde2af8fdbbd11de0b219880df9a0edabd (diff)
downloadcpython-da136967e9a0d1e742865007b5e1fdc051dbc959.zip
cpython-da136967e9a0d1e742865007b5e1fdc051dbc959.tar.gz
cpython-da136967e9a0d1e742865007b5e1fdc051dbc959.tar.bz2
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 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;