diff options
author | Simon Feltman <sfeltman@src.gnome.org> | 2014-01-01 17:10:15 -0800 |
---|---|---|
committer | Simon Feltman <sfeltman@src.gnome.org> | 2014-01-01 18:05:45 -0800 |
commit | 44612636575dd93c97210a7255c4490e2c84db67 (patch) | |
tree | 5c920d6786772942f5f5a78ce37d94414dd51502 | |
parent | 826c0e63eabac68fd665335950d311988a1405e3 (diff) | |
download | pygobject-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.c | 5 |
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 * |