diff options
author | Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> | 2021-11-05 11:51:17 +0100 |
---|---|---|
committer | Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> | 2021-11-05 14:56:32 +0100 |
commit | 5f035b13deb15daab34c2b5da30fabe8600fd803 (patch) | |
tree | 6c2daec1d7882c9e9658c99ec6204ca9c632fd01 /src | |
parent | Merge pull request #21225 from medhefgo/boot-cleanup (diff) | |
download | systemd-5f035b13deb15daab34c2b5da30fabe8600fd803.tar.xz systemd-5f035b13deb15daab34c2b5da30fabe8600fd803.zip |
meson-render-jinja2: use ast.literal_eval()
Imports are sorted in the usual fashion: stdlib first.
literal_eval() parses string/numbers/lists/sets/dicts, and nothing else, while
eval will execute any python code. Using literal_eval() is generally more
correct, because it avoids the risk of side effects from the parsed expression.
In this case, we generate the parsed strings ourselves, so it's very unlikely
to have anything unexpected in the expressions. But let's do the correct thing
anyway.
Diffstat (limited to 'src')
0 files changed, 0 insertions, 0 deletions