diff options
author | rnefyodov <rnefyodov@yandex-team.ru> | 2022-02-10 16:47:17 +0300 |
---|---|---|
committer | Daniil Cherednik <dcherednik@yandex-team.ru> | 2022-02-10 16:47:17 +0300 |
commit | c753751b693cf7c481c0292912e2b7536fa6d36a (patch) | |
tree | 9814fbd1c3effac9b8377c5d604b367b14e2db55 /build/scripts/merge_coverage_data.py | |
parent | c22320e8c4f3d7be38c504706f137034e91d31e6 (diff) | |
download | ydb-c753751b693cf7c481c0292912e2b7536fa6d36a.tar.gz |
Restoring authorship annotation for <rnefyodov@yandex-team.ru>. Commit 2 of 2.
Diffstat (limited to 'build/scripts/merge_coverage_data.py')
-rw-r--r-- | build/scripts/merge_coverage_data.py | 22 |
1 files changed, 11 insertions, 11 deletions
diff --git a/build/scripts/merge_coverage_data.py b/build/scripts/merge_coverage_data.py index 75ed820033..b7fa3c6a86 100644 --- a/build/scripts/merge_coverage_data.py +++ b/build/scripts/merge_coverage_data.py @@ -1,11 +1,11 @@ -import sys -import tarfile +import sys +import tarfile import copy import os import uuid - - -def main(args): + + +def main(args): output_file, args = args[0], args[1:] # heretic@: Splits files on which could be merged( files ) and which should not be merged( expendables ) # expendables will be in output_file in form {name}{ordinal number of archive in args[]}.{extension} @@ -14,8 +14,8 @@ def main(args): except ValueError: split_i = len(args) files, expendables = args[:split_i], args[split_i + 1:] - - with tarfile.open(output_file, 'w') as outf: + + with tarfile.open(output_file, 'w') as outf: for x in files: with tarfile.open(x) as tf: for tarinfo in tf: @@ -26,7 +26,7 @@ def main(args): new_basename = '.'.join([basename_parts[0] + str(uuid.uuid4())] + basename_parts[1:]) new_tarinfo.name = os.path.join(dirname, new_basename) outf.addfile(new_tarinfo, tf.extractfile(tarinfo)) - - -if __name__ == '__main__': - main(sys.argv[1:]) + + +if __name__ == '__main__': + main(sys.argv[1:]) |