#NEWLINE# def create_abbrev( signature ) : #NEWLINE# #INDENT# sb = '' #NEWLINE# startParam = False #NEWLINE# argumentIndex = 1 #NEWLINE# for i in range ( 0 , len ( signature ) ) : #NEWLINE# #INDENT# c = signature [ i ] #NEWLINE# if ( c == ',' ) : #NEWLINE# #INDENT# sb = ( sb + '}' ) #NEWLINE# startParam = True #NEWLINE# sb = ( sb + c ) #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# if ( c == '(' ) : #NEWLINE# #INDENT# startParam = True #NEWLINE# sb = ( sb + c ) #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# if ( c == ')' ) : #NEWLINE# #INDENT# if ( not startParam ) : #NEWLINE# #INDENT# sb = ( sb + '}' ) #NEWLINE# #UNINDENT# sb = ( sb + c ) #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# if ( ( c == ' ' ) or ( c == '\t' ) or ( c == '\n' ) ) : #NEWLINE# #INDENT# sb = ( sb + c ) #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# if startParam : #NEWLINE# #INDENT# startParam = False #NEWLINE# sb = ( sb + '${' ) #NEWLINE# sb = ( sb + str ( argumentIndex ) ) #NEWLINE# argumentIndex = ( argumentIndex + 1 ) #NEWLINE# sb = ( sb + ':' ) #NEWLINE# #UNINDENT# sb = ( sb + c ) #NEWLINE# #UNINDENT# #UNINDENT# #UNINDENT# #UNINDENT# #UNINDENT# return sb