diff options
author | iaz1607 <iaz1607@yandex-team.com> | 2023-11-30 12:16:39 +0300 |
---|---|---|
committer | iaz1607 <iaz1607@yandex-team.com> | 2023-11-30 12:56:46 +0300 |
commit | 8951ddf780e02616cdb2ec54a02bc354e8507c0f (patch) | |
tree | 478097488957d3b554e25868c972a959bb40d78e /build/scripts/autotar_gendirs.py | |
parent | a5acb7aa4ca5a4603215e878eb0cad786793262b (diff) | |
download | ydb-8951ddf780e02616cdb2ec54a02bc354e8507c0f.tar.gz |
`build/scripts` ya style --py
Diffstat (limited to 'build/scripts/autotar_gendirs.py')
-rw-r--r-- | build/scripts/autotar_gendirs.py | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/build/scripts/autotar_gendirs.py b/build/scripts/autotar_gendirs.py index a1228108aa..7784ba18c7 100644 --- a/build/scripts/autotar_gendirs.py +++ b/build/scripts/autotar_gendirs.py @@ -15,7 +15,9 @@ def pack_dir(dir_path, dest_path): dir_path = os.path.abspath(dir_path) for tar_exe in ('/usr/bin/tar', '/bin/tar'): if is_exe(tar_exe): - subprocess.check_call([tar_exe, '-cf', dest_path, '-C', os.path.dirname(dir_path), os.path.basename(dir_path)]) + subprocess.check_call( + [tar_exe, '-cf', dest_path, '-C', os.path.dirname(dir_path), os.path.basename(dir_path)] + ) break else: with tarfile.open(dest_path, 'w') as out: @@ -55,7 +57,10 @@ def main(args): elif args.unpack: for tared_dir in args.dirs: if not tared_dir.endswith(args.ext): - print("Requested to unpack '{}' which do not have required extension '{}'".format(tared_dir, args.ext), file=sys.stderr) + print( + "Requested to unpack '{}' which do not have required extension '{}'".format(tared_dir, args.ext), + file=sys.stderr, + ) return 1 dest = os.path.dirname(tared_dir) unpack_dir(tared_dir, dest) |