bin/find-unneeded-includes | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
New commits: commit 996694d78641df4b2adb5357e6e274a9f9e8ca46 Author: Gabor Kelemen <kelemen.gab...@nisz.hu> AuthorDate: Sat Jun 5 16:07:53 2021 +0200 Commit: Miklos Vajna <vmik...@collabora.com> CommitDate: Mon Jun 7 12:06:03 2021 +0200 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 <vmik...@collabora.com> 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 _______________________________________________ Libreoffice-commits mailing list libreoffice-comm...@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits