Skip to content
Permalink
Browse files

[FIX] yaml_import: yaml.load(input) Deprecation

  • Loading branch information...
mreficent committed Mar 22, 2019
1 parent 5324284 commit ec29f60c78dbc720284560b581ab71eeab875e1a
Showing with 1 addition and 1 deletion.
  1. +1 −1 odoo/tools/yaml_import.py
@@ -791,7 +791,7 @@ def process(self, yaml_string):
yaml_tag.add_constructors()

is_preceded_by_comment = False
for node in yaml.load(yaml_string):
for node in yaml.load(yaml_string, Loader=yaml.SafeLoader):
is_preceded_by_comment = self._log_node(node, is_preceded_by_comment)
try:
self._process_node(node)

0 comments on commit ec29f60

Please sign in to comment.
You can’t perform that action at this time.