diff options
author | snermolaev <snermolaev@yandex-team.com> | 2023-09-21 05:36:14 +0300 |
---|---|---|
committer | snermolaev <snermolaev@yandex-team.com> | 2023-09-21 06:26:16 +0300 |
commit | d815c46d91b2a0eb1bb4af5e80940300ad90b6ce (patch) | |
tree | 9866154d20e00d16b4006ad4f5925dca5ecd3913 | |
parent | a83992879f306cc25358aa06d250525f30d05946 (diff) | |
download | ydb-d815c46d91b2a0eb1bb4af5e80940300ad90b6ce.tar.gz |
[plugins] fix style issues
-rw-r--r-- | build/plugins/_common.py | 4 | ||||
-rw-r--r-- | build/plugins/ssqls.py | 4 |
2 files changed, 5 insertions, 3 deletions
diff --git a/build/plugins/_common.py b/build/plugins/_common.py index 7c595dd492..436bed4e0b 100644 --- a/build/plugins/_common.py +++ b/build/plugins/_common.py @@ -26,8 +26,8 @@ def pathid(path): return six.ensure_str(base64.b32encode(hashlib.md5(six.ensure_binary(path)).digest()).lower().strip(b'=')) -def listid(l): - return pathid(str(sorted(l))) +def listid(items): + return pathid(str(sorted(items))) def unpair(lst): diff --git a/build/plugins/ssqls.py b/build/plugins/ssqls.py index 35461851de..0c47b90772 100644 --- a/build/plugins/ssqls.py +++ b/build/plugins/ssqls.py @@ -23,7 +23,9 @@ class SSQLSParser(object): @staticmethod def parse_doc(doc): - paths = lambda nodes: filter(None, (e.get('path') for e in nodes)) + def paths(nodes): + return [x for x in (e.get('path') for e in nodes) if x] + includes = doc.findall('include') ancestors = paths(doc.findall('ancestors/ancestor')) headers = [e.text.strip('<>""') for e in includes] |