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

index 3a7619324d279fa5376a3bfadf898bda2077f411..08abe71cca5ce52fb150b48ef9edbb38676e294e 100644 (file)
@@ -506,7 +506,7 @@ PyObject_Unicode(PyObject *v)
                func = _PyObject_LookupSpecial(v, "__unicode__", &unicodestr);
                if (func != NULL) {
                        unicode_method_found = 1;
-                       res = PyObject_CallFunctionObjArgs(func, v, NULL);
+                       res = PyObject_CallFunctionObjArgs(func, NULL);
                        Py_DECREF(func);
                }
        }