[gobject-introspection/wip/transformer] [ast] Change Type str() to be less debug-like
- From: Colin Walters <walters src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gobject-introspection/wip/transformer] [ast] Change Type str() to be less debug-like
- Date: Wed, 28 Jul 2010 21:59:45 +0000 (UTC)
commit 5e697fef2efbb74556c3941a47133b45b143ca4a
Author: Colin Walters <walters verbum org>
Date: Wed Jul 28 17:44:12 2010 -0400
[ast] Change Type str() to be less debug-like
This for the doc formatter.
giscanner/ast.py | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
---
diff --git a/giscanner/ast.py b/giscanner/ast.py
old mode 100644
new mode 100755
index 11de22d..324d1bc
--- a/giscanner/ast.py
+++ b/giscanner/ast.py
@@ -99,11 +99,11 @@ In this case, the ctype must be specified.
def __str__(self):
if self.target_fundamental:
- return 'Type(target_fundamental=%s)' % (self.target_fundamental, )
+ return self.target_fundamental
elif self.target_giname:
- return 'Type(target_giname=%s)' % (self.target_giname, )
+ return self.target_giname
elif self.target_foreign:
- return 'Type(target_foreign=%s)' % (self.target_foreign, )
+ return self.target_foreign
class TypeUnknown(Type):
def __init__(self):
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]