commit | 3b28f97fb51878bce64bef4071c6f6c76ce778a9 | [log] [tgz] |
---|---|---|
author | Andrei Homescu <ahomescu@google.com> | Fri Feb 16 04:27:38 2024 +0000 |
committer | Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com> | Fri Feb 16 04:27:38 2024 +0000 |
tree | f416f7eae1da1552cb78776061fd4fc7ecd4f105 | |
parent | 2b0e4d4360f0373bc9aeb2bdb3f223ac6bf0df34 [diff] | |
parent | cf20d1b73b910e6fb5e8ae5c789e6e4df1072960 [diff] |
metrics_atoms_protoc_plugin: Fix pylint errors am: cdee6e0a4e am: cf20d1b73b Original change: https://android-review.googlesource.com/c/trusty/host/common/+/2757187 Change-Id: Ie9f2731c528e251541aaed223c13cd703ca6c424 Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
diff --git a/scripts/metrics_atoms_protoc_plugin/metrics_atoms_protoc_plugin.py b/scripts/metrics_atoms_protoc_plugin/metrics_atoms_protoc_plugin.py index 42cdd92..454c7e6 100755 --- a/scripts/metrics_atoms_protoc_plugin/metrics_atoms_protoc_plugin.py +++ b/scripts/metrics_atoms_protoc_plugin/metrics_atoms_protoc_plugin.py
@@ -344,11 +344,11 @@ ] proto_name = Path(proto_file.name).stem for item in [ - dict(tpl="metrics_atoms.c.j2", ext='c'), - dict(tpl="metrics_atoms.h.j2", ext='h') + {"tpl":"metrics_atoms.c.j2", "ext":'c'}, + {"tpl":"metrics_atoms.h.j2", "ext":'h'}, ]: tm = jinja_template_env.get_template(item["tpl"]) - tm_env = dict(env=VendorAtomEnv) + tm_env = {"env":VendorAtomEnv} rendered = tm.render(**tm_env) file = response.file.add() file_path = pkg.split('/')