summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSimon Feltman <sfeltman@src.gnome.org>2014-01-01 17:10:15 -0800
committerSimon Feltman <sfeltman@src.gnome.org>2014-01-01 18:05:45 -0800
commit44612636575dd93c97210a7255c4490e2c84db67 (patch)
tree5c920d6786772942f5f5a78ce37d94414dd51502
parent826c0e63eabac68fd665335950d311988a1405e3 (diff)
downloadpygobject-44612636575dd93c97210a7255c4490e2c84db67.tar.gz
docs: Cleanup PyGIBaseInfo repr
Remove angle brackets and pointer address from PyGIBaseInfo.__repr__. This cleans up documentation and makes it easier to read.
-rw-r--r--gi/pygi-info.c5
1 files 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 *