Add OrderedDict dependency. Make sure hooks are run in a deterministic order

This commit is contained in:
Anthony Sottile
2014-03-23 12:35:29 -07:00
parent dc1494d0e7
commit 254655e2fd
3 changed files with 28 additions and 8 deletions

10
pre_commit/ordereddict.py Normal file
View File

@@ -0,0 +1,10 @@
from __future__ import absolute_import
# This module serves only as a shim for OrderedDict
try:
from collections import OrderedDict
except ImportError:
from orderddict import OrderedDict
__all__ = (OrderedDict.__name__,)