def is_key_authorized(self, key):
        """Returns whether or not a public key is currently authorized."""
        public_key = key.get_base64()

        try:
            lines = self.storage.read_authorized_keys()

            for line in lines:
                try:
                    authorized_key = line.split()[1]
                except (ValueError, __HOLE__):
                    continue

                if authorized_key == public_key:
                    return True
        except IOError:
            pass

        return False
dataset/ETHPy150Open reviewboard/reviewboard/reviewboard/ssh/client.py/SSHClient.is_key_authorized