Skip to content

Commit

Permalink
Avoid YAML deprecation (dask#4603)
Browse files Browse the repository at this point in the history
  • Loading branch information
mrocklin authored and Jorge Pessoa committed May 14, 2019
1 parent 62f86f8 commit 7aaeb94
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion dask/config.py
Expand Up @@ -165,7 +165,7 @@ def collect_yaml(paths=paths):
for path in file_paths:
try:
with open(path) as f:
data = yaml.load(f.read()) or {}
data = yaml.safe_load(f.read()) or {}
data = normalize_nested_keys(data)
configs.append(data)
except (OSError, IOError):
Expand Down

0 comments on commit 7aaeb94

Please sign in to comment.