diff options
| author | Egor Tensin <egor@tensin.name> | 2026-06-23 18:10:36 +0200 |
|---|---|---|
| committer | Egor Tensin <egor@tensin.name> | 2026-06-23 18:10:36 +0200 |
| commit | db93568d9f8423c4fe6399562f13fa54f7c96494 (patch) | |
| tree | e5543032f89706d0afb3a3c9f777ba1aa14e2620 /project/boost/archive.py | |
| parent | workflows/aur: inherit secrets (diff) | |
| download | cmake-common-db93568d9f8423c4fe6399562f13fa54f7c96494.tar.gz cmake-common-db93568d9f8423c4fe6399562f13fa54f7c96494.zip | |
use default settings for Black
Diffstat (limited to 'project/boost/archive.py')
| -rw-r--r-- | project/boost/archive.py | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/project/boost/archive.py b/project/boost/archive.py index 921e04f..526257c 100644 --- a/project/boost/archive.py +++ b/project/boost/archive.py @@ -25,8 +25,8 @@ class Archive: def unpack(self, dest_dir): path = os.path.join(dest_dir, self.dir_name) if os.path.exists(path): - raise RuntimeError(f'Boost directory already exists: {path}') - logging.info('Unpacking Boost to: %s', path) + raise RuntimeError(f"Boost directory already exists: {path}") + logging.info("Unpacking Boost to: %s", path) shutil.unpack_archive(self.path, dest_dir) return BoostDir(path) @@ -58,10 +58,10 @@ class PermanentStorage(ArchiveStorage): @contextmanager def write_archive(self, version, contents): path = self._archive_path(version) - logging.info('Writing Boost archive: %s', path) + logging.info("Writing Boost archive: %s", path) if os.path.exists(path): - raise RuntimeError(f'cannot download Boost, file already exists: {path}') - with open(path, mode='w+b') as dest: + raise RuntimeError(f"cannot download Boost, file already exists: {path}") + with open(path, mode="w+b") as dest: dest.write(contents) yield path @@ -76,9 +76,9 @@ class TemporaryStorage(ArchiveStorage): @contextmanager def write_archive(self, version, contents): tmp = temp_file( - prefix=f'boost_{version}_', suffix=version.archive_ext, dir=self._dir + prefix=f"boost_{version}_", suffix=version.archive_ext, dir=self._dir ) with tmp as archive_path: - with open(archive_path, mode='wb') as fd: + with open(archive_path, mode="wb") as fd: fd.write(contents) yield archive_path |
