def addSSHKey(self, username, keyname, sshkey):

    key_file_name = self.__get_ssh_key_path(username, keyname)

    try:
      with open(key_file_name) as f:
        return False
    except __HOLE__ as e:
      pass

    new_key_file = open(key_file_name, 'w')
    new_key_file.write(sshkey)
    new_key_file.close()

    return True
dataset/ETHPy150Open smailq/gitolite-manager/gitolite_manager/gitolite.py/Gitolite.addSSHKey