diff options
author | Gabor Kelemen <kelemen.gabor2@nisz.hu> | 2021-06-05 16:07:53 +0200 |
---|---|---|
committer | Miklos Vajna <vmiklos@collabora.com> | 2021-06-07 12:06:03 +0200 |
commit | 996694d78641df4b2adb5357e6e274a9f9e8ca46 (patch) | |
tree | bbec4cf2355051d3ec41b72d562b08e38bd880f0 /bin | |
parent | cc99d43295322a2d6b4abc9b9a8f2e03e3db89f2 (diff) |
find-unneeded-includes: fix YAMLLoadWarning on newer systems
After upgrading to Ubuntu 20.04 I got this warning:
YAMLLoadWarning: calling yaml.load() without Loader=... is deprecated, as the default Loader is unsafe. Please read https://msg.pyyaml.org/load for full details.
Change f-u-i per instructions on website above to fix this warning.
Change-Id: I4424b0ced49d81dceb33131e1df150387a89df4a
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/116748
Tested-by: Jenkins
Reviewed-by: Miklos Vajna <vmiklos@collabora.com>
Diffstat (limited to 'bin')
-rwxr-xr-x | bin/find-unneeded-includes | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/bin/find-unneeded-includes b/bin/find-unneeded-includes index 65f791101d90..4f90ab55e9f5 100755 --- a/bin/find-unneeded-includes +++ b/bin/find-unneeded-includes @@ -260,7 +260,7 @@ def tidy(compileCommands, paths): rulePath = os.path.join(moduleName, "IwyuFilter_" + moduleName + ".yaml") moduleRules = {} if os.path.exists(rulePath): - moduleRules = yaml.load(open(rulePath)) + moduleRules = yaml.full_load(open(rulePath)) assume = None pathAbs = os.path.abspath(path) compileFile = pathAbs |