blob: f003d14ec2379e543981a1650be8593777b2362f (
plain)
1
2
3
4
5
6
7
8
9
10
  | 
try:
    from collections import OrderedDict
except ImportError:
    try:
        from ordereddict import OrderedDict
    except ImportError:
        import warnings
        warnings.warn("git-python needs the ordereddict module installed in python below 2.6 and below.")
        warnings.warn("Using standard dictionary as substitute, and cause reordering when writing git config")
        OrderedDict = dict
  |