def keyvaluesplit(s):
 if (u'=' not in s):
  raise TypeError(u'Option must look like option=json_value')
 if (s[0] == u'_'):
  raise ValueError(u"Option names must not start with `_'")
 idx = s.index(u'=')
 o = s[:idx]
 val = parse_value(s[(idx + 1):])
 return (o, val)

def keyvaluesplit ( s ) : if ( u'=' not in s ) : raise TypeError ( u'Option must look like option=json_value' ) if ( s [ 0 ] == u'_' ) : raise ValueError ( u"Option names must not start with `_'" ) idx = s . index ( u'=' ) o = s [ : idx ] val = parse_value ( s [ ( idx + 1 ) : ] ) return ( o , val )
split k1 .