def parse_user_define(text):
 text = text.strip()
 if ('=' in text):
  text = unqote(text)
  (name, value) = text.split('=', 1)
  name = name.strip()
  value = unqote(value.strip())
 else:
  name = text
  value = 'true'
 return (name, value)

def parse_user_define ( text ) : text = text . strip ( ) if ( '=' in text ) : text = unqote ( text ) ( name , value ) = text . split ( '=' , 1 ) name = name . strip ( ) value = unqote ( value . strip ( ) ) else : name = text value = 'true' return ( name , value )
parse "{name}={value}" text and return parts as tuple .