[Libreoffice-commits] core.git: bin/find-unneeded-includes
Gabor Kelemen (via logerrit)
logerrit at kemper.freedesktop.org
Mon Jun 7 10:06:40 UTC 2021
bin/find-unneeded-includes | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
New commits:
commit 996694d78641df4b2adb5357e6e274a9f9e8ca46
Author: Gabor Kelemen <kelemen.gabor2 at nisz.hu>
AuthorDate: Sat Jun 5 16:07:53 2021 +0200
Commit: Miklos Vajna <vmiklos at 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 <vmiklos at 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
More information about the Libreoffice-commits
mailing list