aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDaniel Borkmann <daniel@iogearbox.net>2019-09-25 23:49:07 +0200
committerThomas Gleixner <tglx@linutronix.de>2019-09-26 13:55:46 +0200
commitd2a74e732cc8f03e81a17e17f500152aa665510a (patch)
tree9c88947591cf022f2d6131f758233fc2a832fa28
parente6f724d324490f0c762816e7fd63865bd4a1fd7d (diff)
downloadquilttools-d2a74e732cc8f03e81a17e17f500152aa665510a.tar.gz
mb2q: Fix deprecated yaml.load() warnings by specifying Loader
Fix the following mb2q issue on startup: $ ./mb2q ./t.mbox ./mb2q:653: YAMLLoadWarning: calling yaml.load() without Loader=... is deprecated, as the default Loader is unsafe. Please read https://msg.pyyaml.org/load for full details. cfg = yaml.load(open(os.path.expanduser(args.config))) Signed-off-by: Daniel Borkmann <daniel@iogearbox.net> Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
-rwxr-xr-xmb2q2
1 files changed, 1 insertions, 1 deletions
diff --git a/mb2q b/mb2q
index c93ba04..1adbad6 100755
--- a/mb2q
+++ b/mb2q
@@ -650,7 +650,7 @@ if __name__ == '__main__':
args = parser.parse_args()
try:
- cfg = yaml.load(open(os.path.expanduser(args.config)))
+ cfg = yaml.load(open(os.path.expanduser(args.config)), Loader=yaml.FullLoader)
except:
cfg = {}