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 | e9d6dd2e511aaaec9e6182b7ae9327dce82a051d (patch) | |
tree | b0c986cf74d10d4aea897f76c8dcec5ee84efc4f /build/plugins/pybuild.py | |
parent | 597c5894e3c8cdfa680c5a5e8c2e69b61dce8254 (diff) | |
download | ydb-e9d6dd2e511aaaec9e6182b7ae9327dce82a051d.tar.gz |
Restoring authorship annotation for <tekireeva@yandex-team.ru>. Commit 1 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 f32a2d39a0..91c2997f23 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) |