#NEWLINE# def parse_args_kwargs( parser , token ) : #NEWLINE# #INDENT# ( tag_name , arg_str ) = token . contents . split ( ' ' , 1 ) #NEWLINE# args = [ ] #NEWLINE# kwargs = { #NEWLINE# #INDENT# #NEWLINE# #UNINDENT# } #NEWLINE# for match in tag_argument . finditer ( arg_str ) : #NEWLINE# #INDENT# arg = match . group ( ) #NEWLINE# if ( '=' in arg ) : #NEWLINE# #INDENT# ( k , v ) = arg . split ( '=' , 1 ) #NEWLINE# kwargs [ str ( k ) ] = v #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# args . append ( arg ) #NEWLINE# #UNINDENT# #UNINDENT# return ( tag_name , arg , kwargs )