#NEWLINE# def tokenize_single_wcomma( val ) : #NEWLINE# #INDENT# m = r_wcomattrval . match ( m ) #NEWLINE# if m : #NEWLINE# #INDENT# try : #NEWLINE# #INDENT# name = m . group ( 1 ) . strip ( ) #NEWLINE# type = m . group ( 2 ) . strip ( ) #NEWLINE# #UNINDENT# except IndexError : #NEWLINE# #INDENT# raise ValueError ( 'Error while tokenizing attribute' ) #NEWLINE# #UNINDENT# #UNINDENT# else : #NEWLINE# #INDENT# raise ValueError ( ( 'Error while tokenizing single %s' % val ) ) #NEWLINE# #UNINDENT# return ( name , type )