From 44612636575dd93c97210a7255c4490e2c84db67 Mon Sep 17 00:00:00 2001 From: Simon Feltman Date: Wed, 1 Jan 2014 17:10:15 -0800 Subject: docs: Cleanup PyGIBaseInfo repr Remove angle brackets and pointer address from PyGIBaseInfo.__repr__. This cleans up documentation and makes it easier to read. --- gi/pygi-info.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/gi/pygi-info.c b/gi/pygi-info.c index 95303b82..5ef31459 100644 --- a/gi/pygi-info.c +++ b/gi/pygi-info.c @@ -186,10 +186,9 @@ static PyObject * _base_info_repr (PyGIBaseInfo *self) { - return PYGLIB_PyUnicode_FromFormat ("<%s object (%s) at 0x%p>", + return PYGLIB_PyUnicode_FromFormat ("%s(%s)", Py_TYPE( (PyObject *) self)->tp_name, - _safe_base_info_get_name (self->info), - (void *) self); + _safe_base_info_get_name (self->info)); } static PyObject * -- cgit v1.2.1