diff options
author | Stanislav Kirillov <staskirillov@gmail.com> | 2022-02-10 16:46:07 +0300 |
---|---|---|
committer | Daniil Cherednik <dcherednik@yandex-team.ru> | 2022-02-10 16:46:07 +0300 |
commit | 92fe2b1e7bc79f7b95adef61714fc003f6ea4a1c (patch) | |
tree | 817034f4ca57c9f841bb047ec94630c2e78a2b1d /build/scripts/fix_msvc_output.py | |
parent | 53c76da6d9f6cc5a17f6029df396f0e3bc1ff47d (diff) | |
download | ydb-92fe2b1e7bc79f7b95adef61714fc003f6ea4a1c.tar.gz |
Restoring authorship annotation for Stanislav Kirillov <staskirillov@gmail.com>. Commit 1 of 2.
Diffstat (limited to 'build/scripts/fix_msvc_output.py')
-rw-r--r-- | build/scripts/fix_msvc_output.py | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/build/scripts/fix_msvc_output.py b/build/scripts/fix_msvc_output.py index b2e7d38307..aa64adf316 100644 --- a/build/scripts/fix_msvc_output.py +++ b/build/scripts/fix_msvc_output.py @@ -8,19 +8,19 @@ def out2err(cmd): return subprocess.Popen(cmd, stdout=sys.stderr).wait() -def decoding_needed(strval): - if sys.version_info >= (3, 0, 0): - return isinstance(strval, bytes) - else: - return False - - +def decoding_needed(strval): + if sys.version_info >= (3, 0, 0): + return isinstance(strval, bytes) + else: + return False + + def out2err_cut_first_line(cmd): p = subprocess.Popen(cmd, stdout=subprocess.PIPE) first_line = True while True: line = p.stdout.readline() - line = line.decode('utf-8') if decoding_needed(line) else line + line = line.decode('utf-8') if decoding_needed(line) else line if not line: break if first_line: |