def parseString(self, str):
        val = str.split()
        if len(val) < 2 or len(val) > 3:
            raise ParseError("expected <hostglob> <user> [<password>]")
        elif len(val) == 2:
            return (val[0], val[1], None)
        else:
            pw = (val[2] is not None and util.ProtectedString(val[2])) or None
            return (val[0], val[1], pw)
dataset/ETHPy150Open sassoftware/conary/conary/conarycfg.py/CfgUserInfoItem.parseString/original