diff options
author | abodrov <abodrov@yandex-team.ru> | 2022-02-10 16:47:18 +0300 |
---|---|---|
committer | Daniil Cherednik <dcherednik@yandex-team.ru> | 2022-02-10 16:47:18 +0300 |
commit | 1b8c043abfc689b3d27384c4202b20031fc4ae31 (patch) | |
tree | 43ffe3a7cfe51a083e22d9eabb71c4f5321f6b08 /library/python/testing/yatest_common/yatest/common/canonical.py | |
parent | e7a025f6f4917a3eb54227db101e58bb26ee2cfa (diff) | |
download | ydb-1b8c043abfc689b3d27384c4202b20031fc4ae31.tar.gz |
Restoring authorship annotation for <abodrov@yandex-team.ru>. Commit 1 of 2.
Diffstat (limited to 'library/python/testing/yatest_common/yatest/common/canonical.py')
-rw-r--r-- | library/python/testing/yatest_common/yatest/common/canonical.py | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/library/python/testing/yatest_common/yatest/common/canonical.py b/library/python/testing/yatest_common/yatest/common/canonical.py index b6a136d3e9..4943ae1a87 100644 --- a/library/python/testing/yatest_common/yatest/common/canonical.py +++ b/library/python/testing/yatest_common/yatest/common/canonical.py @@ -3,8 +3,8 @@ import logging import shutil import tempfile -import six - +import six + from . import process from . import runtime from . import path @@ -15,7 +15,7 @@ yatest_logger = logging.getLogger("ya.test") def _copy(src, dst, universal_lines=False): if universal_lines: with open(dst, "wb") as f: - for line in open(src, "rbU"): + for line in open(src, "rbU"): f.write(line) return shutil.copy(src, dst) @@ -146,7 +146,7 @@ def canonical_py_execute( def _prepare_args(args): if args is None: args = [] - if isinstance(args, six.string_types): + if isinstance(args, six.string_types): args = map(lambda a: a.strip(), args.split()) return args @@ -165,12 +165,12 @@ def _canonical_execute(excutor, kwargs, file_name, save_locally, diff_tool, diff except OSError: pass - with open(out_file_path, "wb") as out_file: + with open(out_file_path, "wb") as out_file: yatest_logger.debug("Will store file in %s", out_file_path) out_file.write(res.std_out) if res.std_err: - with open(err_file_path, "wb") as err_file: + with open(err_file_path, "wb") as err_file: err_file.write(res.std_err) return canonical_file(out_file_path, local=save_locally, diff_tool=diff_tool, diff_file_name=diff_file_name, diff_tool_timeout=diff_tool_timeout) |