diff options
author | tekireeva <tekireeva@yandex-team.ru> | 2022-02-10 16:51:38 +0300 |
---|---|---|
committer | Daniil Cherednik <dcherednik@yandex-team.ru> | 2022-02-10 16:51:38 +0300 |
commit | 569c3cefb9e9785ef25d8a067c01ea66ffa8deef (patch) | |
tree | ab7fbbf3253d4c0e2793218f09378908beb025fb /build/plugins/pybuild.py | |
parent | e9d6dd2e511aaaec9e6182b7ae9327dce82a051d (diff) | |
download | ydb-569c3cefb9e9785ef25d8a067c01ea66ffa8deef.tar.gz |
Restoring authorship annotation for <tekireeva@yandex-team.ru>. Commit 2 of 2.
Diffstat (limited to 'build/plugins/pybuild.py')
-rw-r--r-- | build/plugins/pybuild.py | 54 |
1 files changed, 27 insertions, 27 deletions
diff --git a/build/plugins/pybuild.py b/build/plugins/pybuild.py index 91c2997f23..f32a2d39a0 100644 --- a/build/plugins/pybuild.py +++ b/build/plugins/pybuild.py @@ -507,8 +507,8 @@ def onpy_srcs(unit, *args): for py_suf in unit.get("PY_PROTO_SUFFIXES").split() ]) - if optimize_proto and need_gazetteer_peerdir: - unit.onpeerdir(['kernel/gazetteer/proto']) + if optimize_proto and need_gazetteer_peerdir: + unit.onpeerdir(['kernel/gazetteer/proto']) if evs: unit.onpeerdir([cpp_runtime_path]) @@ -621,28 +621,28 @@ def onpy_constructor(unit, arg): else: arg[arg.index(':')] = '=' unit.onresource(['-', 'py/constructors/{}'.format(arg)]) - -def onpy_enums_serialization(unit, *args): - ns = '' - args = iter(args) - for arg in args: - # Namespace directives. - if arg == 'NAMESPACE': - ns = next(args) - else: - unit.on_py_enum_serialization_to_json(arg) - unit.on_py_enum_serialization_to_py(arg) - filename = arg.rsplit('.', 1)[0] + '.py' - if len(ns) != 0: - onpy_srcs(unit, 'NAMESPACE', ns, filename) - else: - onpy_srcs(unit, filename) - -def oncpp_enums_serialization(unit, *args): - args = iter(args) - for arg in args: - # Namespace directives. - if arg == 'NAMESPACE': - next(args) - else: - unit.ongenerate_enum_serialization_with_header(arg) + +def onpy_enums_serialization(unit, *args): + ns = '' + args = iter(args) + for arg in args: + # Namespace directives. + if arg == 'NAMESPACE': + ns = next(args) + else: + unit.on_py_enum_serialization_to_json(arg) + unit.on_py_enum_serialization_to_py(arg) + filename = arg.rsplit('.', 1)[0] + '.py' + if len(ns) != 0: + onpy_srcs(unit, 'NAMESPACE', ns, filename) + else: + onpy_srcs(unit, filename) + +def oncpp_enums_serialization(unit, *args): + args = iter(args) + for arg in args: + # Namespace directives. + if arg == 'NAMESPACE': + next(args) + else: + unit.ongenerate_enum_serialization_with_header(arg) |