def upload_archive(self, archive_file_path):
        """
        Upload the encrypted archive.

        :param archive_file_path: Path to the encrypted tarball file.
        :type archive_file_path: ``str``
        """
        try:
            assert archive_file_path.endswith('.asc')

            LOG.debug('Uploading tarball...')
            file_name = os.path.basename(archive_file_path)
            url = self.s3_bucket_url + file_name
            assert url.startswith('https://')

            with open(archive_file_path, 'rb') as fp:
                response = requests.put(url=url, files={'file': fp})
            assert response.status_code == httplib.OK
        except Exception as e:
            LOG.exception(self.company_name % 'Failed to upload tarball to %s', exc_info=True)
            raise e
dataset/ETHPy150Open StackStorm/st2/st2debug/st2debug/cmd/submit_debug_info.py/DebugInfoCollector.upload_archive/swapped operands of `%`