提交 f03544f9 编写于 作者: T tuteng 提交者: Jia Zhai

Add default loader for latest pyyaml (#4974)

Fixes https://github.com/apache/pulsar/issues/4956

Master Issue: https://github.com/apache/pulsar/issues/4956

### Motivation

In the latest version of pyyaml, using load will issue a warning and explain some reasons here https://github.com/yaml/pyyaml/wiki/PyYAML-yaml.load(input)-Deprecation.

### Modifications

* Use yaml.FullLoader as default loader

(cherry picked from commit d49e61e0)
上级 b8aa2b0d
......@@ -46,7 +46,7 @@ if len(sys.argv) < 2:
conf_files = sys.argv[1:]
for conf_filename in conf_files:
conf = yaml.load(open(conf_filename))
conf = yaml.load(open(conf_filename), Loader=yaml.FullLoader)
# update the config
modified = False
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册