def parseString(self, str):
        s = str.split()
        if len(s) != 2:
            raise cfgtypes.ParseError("log level and path expected")
        try:
            s = (int(s[0]), cfgtypes.Path(s[1]))
        except Exception, e:
            raise cfgtypes.ParseError(
                "log level (integer) and path (string) expected\n%s" % (e,))
        return s
dataset/ETHPy150Open sassoftware/conary/conary/lib/tracelog.py/CfgTraceLog.parseString/original