Skip to content

Commit 6853f4a

Browse files
authored
Merge pull request pre-commit#779 from pre-commit/yaml_load
Appease yaml.load linters
2 parents ebb178a + c3e4383 commit 6853f4a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pre_commit/commands/migrate_config.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ def _migrate_map(contents):
3232
# will yield a valid configuration
3333
try:
3434
trial_contents = header + 'repos:\n' + rest
35-
yaml.load(trial_contents)
35+
ordered_load(trial_contents)
3636
contents = trial_contents
3737
except yaml.YAMLError:
3838
contents = header + 'repos:\n' + _indent(rest)

0 commit comments

Comments
 (0)