summaryrefslogtreecommitdiffstats
path: root/bin
diff options
context:
space:
mode:
authorGabor Kelemen <kelemen.gabor2@nisz.hu>2021-06-05 16:07:53 +0200
committerMiklos Vajna <vmiklos@collabora.com>2021-06-07 12:06:03 +0200
commit996694d78641df4b2adb5357e6e274a9f9e8ca46 (patch)
treebbec4cf2355051d3ec41b72d562b08e38bd880f0 /bin
parentsw: prefix members of CSS1Selector, HTMLStartEndPos, SvxCSS1MapEntry and ... (diff)
downloadcore-996694d78641df4b2adb5357e6e274a9f9e8ca46.tar.gz
core-996694d78641df4b2adb5357e6e274a9f9e8ca46.zip
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-xbin/find-unneeded-includes2
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