diff options
author | nalpp <nalpp@yandex-team.ru> | 2022-02-10 16:46:45 +0300 |
---|---|---|
committer | Daniil Cherednik <dcherednik@yandex-team.ru> | 2022-02-10 16:46:45 +0300 |
commit | 87f3eb38999df2d3c1cb77f8ffb9c52ec9c516fb (patch) | |
tree | f4ab0734eecf35b22f21952d1aa15496f267a6a3 /build/plugins/_common.py | |
parent | 198698b9c1e18958addc9682fbfba4576d604757 (diff) | |
download | ydb-87f3eb38999df2d3c1cb77f8ffb9c52ec9c516fb.tar.gz |
Restoring authorship annotation for <nalpp@yandex-team.ru>. Commit 1 of 2.
Diffstat (limited to 'build/plugins/_common.py')
-rw-r--r-- | build/plugins/_common.py | 42 |
1 files changed, 21 insertions, 21 deletions
diff --git a/build/plugins/_common.py b/build/plugins/_common.py index 2f831a94db..7a4753ced4 100644 --- a/build/plugins/_common.py +++ b/build/plugins/_common.py @@ -1,4 +1,4 @@ -import sys +import sys import hashlib import base64 @@ -165,26 +165,26 @@ def skip_build_root(x): return x -def get_interpreter_path(): - interpreter_path = [sys.executable] - if 'ymake' in interpreter_path[0]: - interpreter_path.append('--python') - return interpreter_path - - -def filter_out_by_keyword(test_data, keyword): - def _iterate(): - i = 0 - while i < len(test_data): - if test_data[i] == keyword: - i += 2 - else: - yield test_data[i] - i += 1 - - return list(_iterate()) - - +def get_interpreter_path(): + interpreter_path = [sys.executable] + if 'ymake' in interpreter_path[0]: + interpreter_path.append('--python') + return interpreter_path + + +def filter_out_by_keyword(test_data, keyword): + def _iterate(): + i = 0 + while i < len(test_data): + if test_data[i] == keyword: + i += 2 + else: + yield test_data[i] + i += 1 + + return list(_iterate()) + + def generate_chunks(lst, chunk_size): for i in xrange(0, len(lst), chunk_size): yield lst[i:(i + chunk_size)] |