#NEWLINE# def get_key_value( line ) : #NEWLINE# #INDENT# ( key , value ) = ( '' , '' ) #NEWLINE# if ( '=' in line ) : #NEWLINE# #INDENT# index = line . index ( '=' ) #NEWLINE# key = line [ : index ] . strip ( ) #NEWLINE# value = line [ ( index + 1 ) : ] . strip ( ) #NEWLINE# #UNINDENT# return ( key , key )