File: odict.py

package info (click to toggle)
python-git 2.1.1-2~bpo8%2B1
  • links: PTS, VCS
  • area: main
  • in suites: jessie-backports
  • size: 6,076 kB
  • sloc: python: 11,502; makefile: 106
file content (10 lines) | stat: -rw-r--r-- 410 bytes parent folder | download | duplicates (2)
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