1
0
mirror of https://github.com/samba-team/samba.git synced 2025-08-02 00:22:11 +03:00

Saner names for Python objects.

(This used to be commit f4de8d2c1c)
This commit is contained in:
Jelmer Vernooij
2008-04-15 12:51:31 +02:00
parent 1a8bfba545
commit 983b66b8f1

View File

@ -39,7 +39,7 @@ PyObject *py_talloc_import_ex(PyTypeObject *py_type, TALLOC_CTX *mem_ctx,
PyObject *py_talloc_default_repr(PyObject *py_obj)
{
py_talloc_Object *obj = (py_talloc_Object *)py_obj;
PyTypeObject *type = (PyTypeObject*)PyObject_Type((PyObject *)obj);
return PyString_FromFormat("<talloc: %s>",
talloc_get_name(obj->talloc_ctx));
return PyString_FromFormat("<%s>", type->tp_name);
}