def on_done(self, index):
        if index == -1: return

        self.fileName = self.items[index]
        data = {
            "files": {
                self.fileName: None
            }
        }

        settings = util.get_settings()
        api = GistApi(settings["token"])
        thread = threading.Thread(target=api.patch, args=(self.gist["url"], data, ))
        thread.start()

        description = self.gist["description"]
        if not description:
            description = self.gist["id"] % "gist:%s"
        ThreadProgress(api, thread, 'Delete %s from Gist %s' % (self.fileName, description),
            callback.delete_file_from_gist, _callback_options={
                "fileName": self.fileName,
                "gistName": description
            }
        )
dataset/ETHPy150Open xjsender/HaoGist/main.py/DeleteFileFromGist.on_done/swapped operands of `%`