

def _parse_line(self, line):
    try:
        (key, value) = map(str.strip, line.split('\t'))
    except ValueError:
        raise ValueError(('Found invalid line: %s' % line))
    if (not key):
        raise ValueError('The key is mandatory and should not be empty')
    try:
        value = int(value)
    except (TypeError, ValueError):
        pass
    return (key, value)

dataset/ETHPy150Open francelabs/datafari/debian7/zookeeper/src/contrib/huebrowser/zkui/src/zkui/stats.py ZooKeeperStats._parse_line/original