Skip to content

Commit f33716c

Browse files
committed
Remove usage of OrderedDict
1 parent 5e52a65 commit f33716c

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

pre_commit/commands/try_repo.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
import argparse
2-
import collections
32
import logging
43
import os.path
54
from typing import Tuple
@@ -62,8 +61,7 @@ def try_repo(args: argparse.Namespace) -> int:
6261
manifest = sorted(manifest, key=lambda hook: hook['id'])
6362
hooks = [{'id': hook['id']} for hook in manifest]
6463

65-
items = (('repo', repo), ('rev', ref), ('hooks', hooks))
66-
config = {'repos': [collections.OrderedDict(items)]}
64+
config = {'repos': [{'repo': repo, 'rev': ref, 'hooks': hooks}]}
6765
config_s = ordered_dump(config, **C.YAML_DUMP_KWARGS)
6866

6967
config_filename = os.path.join(tempdir, C.CONFIG_FILE)

0 commit comments

Comments
 (0)