[pygccxml-commit] source/pygccxml/declarations cpptypes.py,1.24,1.25
Brought to you by:
mbaas,
roman_yakovenko
From: Matthias B. <mb...@us...> - 2006-03-22 10:40:15
|
Update of /cvsroot/pygccxml/source/pygccxml/declarations In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv1371 Modified Files: cpptypes.py Log Message: Added a __str__ method to types_t Index: cpptypes.py =================================================================== RCS file: /cvsroot/pygccxml/source/pygccxml/declarations/cpptypes.py,v retrieving revision 1.24 retrieving revision 1.25 diff -C2 -d -r1.24 -r1.25 *** cpptypes.py 8 Mar 2006 08:46:10 -0000 1.24 --- cpptypes.py 22 Mar 2006 10:40:13 -0000 1.25 *************** *** 13,16 **** --- 13,22 ---- object.__init__( self ) + def __str__(self): + res = self.decl_string + if res[:2]=="::": + res = res[2:] + return res + def __eq__(self, other): if not isinstance( other, type_t ): |