def parse(self, path):
        self.keys = {}
        try:
            with open(path, "r") as fp:
                for line in fp:
                    line = line.strip()
                    if not line:
                        continue

                    if line.startswith("command="):
                        # TODO: This is a bit of a hack.. not sure what else could be here
                        # TODO: Do something with cmd? It'll get overwritten
                        line = line[line.find("ssh-"):]
                    l = line.split(' ')
                    cmd = None
                    if len(l) == 3:
                        keytype, key, name = l
                    else:
                        keytype, key = l
                        name = ""
                    self.keys[(keytype, key)] = name
        except __HOLE__ as exc:
            if exc.errno != 2: # No such file
                raise
dataset/ETHPy150Open samuel/kokki/kokki/cookbooks/ssh/libraries/utils.py/SSHAuthorizedKeysFile.parse