Merge pull request #779 from pre-commit/yaml_load

Appease yaml.load linters
This commit is contained in:
Anthony Sottile 2018-07-03 05:51:21 -07:00 committed by GitHub
commit 6853f4aa4c
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -32,7 +32,7 @@ def _migrate_map(contents):
# will yield a valid configuration
try:
trial_contents = header + 'repos:\n' + rest
yaml.load(trial_contents)
ordered_load(trial_contents)
contents = trial_contents
except yaml.YAMLError:
contents = header + 'repos:\n' + _indent(rest)