[pygobject] docs: Cleanup PyGIBaseInfo repr
- From: Simon Feltman <sfeltman src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [pygobject] docs: Cleanup PyGIBaseInfo repr
- Date: Thu, 2 Jan 2014 03:05:50 +0000 (UTC)
commit 44612636575dd93c97210a7255c4490e2c84db67
Author: Simon Feltman <sfeltman src gnome org>
Date: Wed Jan 1 17:10:15 2014 -0800
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 files changed, 2 insertions(+), 3 deletions(-)
---
diff --git a/gi/pygi-info.c b/gi/pygi-info.c
index 95303b8..5ef3145 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 *
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]