From f723ec5cc373bdc8f01a76772c8548daef71b400 Mon Sep 17 00:00:00 2001 From: Sean McGinnis Date: Thu, 6 Aug 2020 12:14:13 -0500 Subject: [PATCH] Remove deprecation warning from docs build The yaml.load() call has been deprecated if Loader= is not provided. It is recommended to use safe_load() instead. This updates our Sphinx extension to use safe_load() to avoid DeprecationWarnings from being emitted while building docs. Change-Id: I695cec8e272f143a1edd3de0ec2c8606ed403c47 Signed-off-by: Sean McGinnis --- doc/source/_exts/sigtable.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/doc/source/_exts/sigtable.py b/doc/source/_exts/sigtable.py index dbb8303..76dd7f7 100644 --- a/doc/source/_exts/sigtable.py +++ b/doc/source/_exts/sigtable.py @@ -54,7 +54,7 @@ class SIGTable(Table): LOG.info('loading sigtable') LOG.info('reading %s' % filename) with open(filename, 'r') as f: - _teams_yaml = yaml.load(f.read()) + _teams_yaml = yaml.safe_load(f.read()) table = nodes.table()