aboutsummaryrefslogtreecommitdiffstats
path: root/build/plugins/_common.py
diff options
context:
space:
mode:
authornalpp <nalpp@yandex-team.ru>2022-02-10 16:46:46 +0300
committerDaniil Cherednik <dcherednik@yandex-team.ru>2022-02-10 16:46:46 +0300
commit30d1ef3941e0dc835be7609de5ebee66958f215a (patch)
tree49e222ea1c5804306084bb3ae065bb702625360f /build/plugins/_common.py
parent87f3eb38999df2d3c1cb77f8ffb9c52ec9c516fb (diff)
downloadydb-30d1ef3941e0dc835be7609de5ebee66958f215a.tar.gz
Restoring authorship annotation for <nalpp@yandex-team.ru>. Commit 2 of 2.
Diffstat (limited to 'build/plugins/_common.py')
-rw-r--r--build/plugins/_common.py42
1 files changed, 21 insertions, 21 deletions
diff --git a/build/plugins/_common.py b/build/plugins/_common.py
index 7a4753ced4..2f831a94db 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)]