#NEWLINE# def gacs( field ) : #NEWLINE# #INDENT# values = [ ] #NEWLINE# for ( c , v ) in field : #NEWLINE# #INDENT# if ( field == 'a' ) : #NEWLINE# #INDENT# v = re . sub ( '-+$' , '' , v ) #NEWLINE# values . append ( gacs_dict . get ( v , v ) ) #NEWLINE# #UNINDENT# #UNINDENT# return values