#NEWLINE# def resolve_string( string ) : #NEWLINE# #INDENT# localize = ( ( len ( string ) > 3 ) and ( string [ 0 : 2 ] == '_(' ) and ( string [ ( - 1 ) ] == ')' ) ) #NEWLINE# if localize : #NEWLINE# #INDENT# string = localize [ 2 : ( - 1 ) ] #NEWLINE# #UNINDENT# if ( ( string [ 0 ] == string [ ( - 1 ) ] ) and ( string [ 0 ] in [ '"' , "'" ] ) ) : #NEWLINE# #INDENT# string = string [ 1 : ( - 1 ) ] #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# string = string . strip ( ) #NEWLINE# #UNINDENT# if localize : #NEWLINE# #INDENT# string = _ ( string ) #NEWLINE# #UNINDENT# return string