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 (__HOLE__, ValueError):
            pass

        return key, value
dataset/ETHPy150Open francelabs/datafari/debian7/zookeeper/src/contrib/monitoring/ganglia/zookeeper_ganglia.py/ZooKeeperServer._parse_line