aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorsnermolaev <snermolaev@yandex-team.com>2023-09-21 05:36:14 +0300
committersnermolaev <snermolaev@yandex-team.com>2023-09-21 06:26:16 +0300
commitd815c46d91b2a0eb1bb4af5e80940300ad90b6ce (patch)
tree9866154d20e00d16b4006ad4f5925dca5ecd3913
parenta83992879f306cc25358aa06d250525f30d05946 (diff)
downloadydb-d815c46d91b2a0eb1bb4af5e80940300ad90b6ce.tar.gz
[plugins] fix style issues
-rw-r--r--build/plugins/_common.py4
-rw-r--r--build/plugins/ssqls.py4
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]