[pygccxml-commit] source/pygccxml/declarations pattern_parser.py,1.5,1.6
Brought to you by:
mbaas,
roman_yakovenko
From: Roman <rom...@us...> - 2006-04-24 03:47:07
|
Update of /cvsroot/pygccxml/source/pygccxml/declarations In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv10275/pygccxml/declarations Modified Files: pattern_parser.py Log Message: Fixing bug in pattern parser Index: pattern_parser.py =================================================================== RCS file: /cvsroot/pygccxml/source/pygccxml/declarations/pattern_parser.py,v retrieving revision 1.5 retrieving revision 1.6 diff -C2 -d -r1.5 -r1.6 *** pattern_parser.py 6 Apr 2006 06:15:56 -0000 1.5 --- pattern_parser.py 24 Apr 2006 03:47:01 -0000 1.6 *************** *** 109,122 **** def join( self, name, args ): args = filter( None, args) if not args: ! return ''.join( [ name ! , self.__begin ! , ' ' ! , self.__end ] ) else: ! return ''.join( [ name ! , self.__begin ! , ' ' ! , ', '.join( args ) ! , ' ' ! , self.__end ] ) \ No newline at end of file --- 109,119 ---- def join( self, name, args ): args = filter( None, args) + args_str = '' if not args: ! args_str = ' ' ! elif 1 == len( args ): ! args_str = ' ' + args[0] + ' ' else: ! args_str = ' ' + ', '.join( args ) + ' ' ! ! return ''.join( [ name, self.__begin, args_str, self.__end ] ) |