def swift_list(self):
        file_set = set()
        if self.config.has_section('swift'):
            try:
                swift_config = dict(self.config.items('swift'))
                con = _get_swift_connection(swift_config)

                prefix = self.logname + '/' if self.logname[-1] != '/' \
                    else self.logname
                resp, files = con.get_container(swift_config['container'],
                                                prefix=prefix,
                                                delimiter='/')

                for f in files:
                    size = sizeof_fmt(f.get('bytes', 0))
                    mtime = f.get('last_modified', 'unknown')
                    if 'subdir' in f:
                        fname = os.path.relpath(f['subdir'], self.logname)
                        fname = fname + '/' if f['subdir'][-1] == '/' else \
                            fname
                    else:
                        fname = os.path.relpath(f['name'], self.logname)
                    file_set.add((
                        os.path.join('/', self.logname, fname),
                        fname,
                        mtime,
                        size
                    ))
            except Exception:
                import traceback
                sys.stderr.write("Error fetching index list from swift.\n")
                sys.stderr.write('logname: %s\n' + self.logname)
                traceback.print_exc()

        return file_set
dataset/ETHPy150Open openstack-infra/os-loganalyze/os_loganalyze/generator.py/IndexIterableBuffer.swift_list/operator `%` -> `+`