Resolve YAMLLoadWarning: calling yaml.load() without Loader=... is deprecated, as the default Loader is unsafe.
parent
f062d1fdc5
commit
7c68030ac5
1 changed files with 1 additions and 1 deletions
|
@ -176,7 +176,7 @@ import os
|
|||
CONFIG="install.conf.yaml"
|
||||
|
||||
stream = open(CONFIG, "r")
|
||||
conf = yaml.load(stream)
|
||||
conf = yaml.load(stream, yaml.FullLoader)
|
||||
|
||||
for section in conf:
|
||||
if 'link' in section:
|
||||
|
|
Loading…
Reference in a new issue