def getSSHKeys(self):

    keys = glob.glob(self._key_path + '*@*.pub')

    key_data = {}

    for keyfile in keys:
      filename = os.path.basename(keyfile)[:-4]
      filename_split = filename.split('@',1)

      if len(filename_split) != 2:
        raise SyntaxError('Invalid key file name')

      username = filename_split[0].strip()
      keyname = filename_split[1].strip()

      if username not in key_data:
        key_data[username] = []

      key_data[username].append(keyname)

    return key_data
dataset/ETHPy150Open smailq/gitolite-manager/gitolite_manager/gitolite.py/Gitolite.getSSHKeys/original