def _config_key_value(line, splitchar):
 try:
  (k, v) = line.split(splitchar, 1)
 except ValueError:
  k = line
  v = u'true'
 return (k, _config_to_python(v))

def _config_key_value ( line , splitchar ) : try : ( k , v ) = line . split ( splitchar , 1 ) except ValueError : k = line v = u'true' return ( k , _config_to_python ( v ) )
split a config line into a pair .