Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit da13696

Browse files
committed
this is now a bound method
1 parent 224205f commit da13696

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

Objects/object.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -484,7 +484,7 @@ PyObject_Bytes(PyObject *v)
484484

485485
func = _PyObject_LookupSpecial(v, "__bytes__", &bytesstring);
486486
if (func != NULL) {
487-
result = PyObject_CallFunctionObjArgs(func, v, NULL);
487+
result = PyObject_CallFunctionObjArgs(func, NULL);
488488
Py_DECREF(func);
489489
if (result == NULL)
490490
return NULL;

0 commit comments

Comments
 (0)