- commit
- 92302879fbdd641f96824fe272e2fbd40238fc70
- parent
- cc1d0ca0b20d8b2d91831dbcd9d7d53113db847c
- Author
- Tobias Bengfort <tobias.bengfort@gmx.net>
- Date
- 2014-04-20 23:51
use ordereddict to preserve field order
Diffstat
| M | cctool.py | 3 | ++- |
1 files changed, 2 insertions, 1 deletions
diff --git a/cctool.py b/cctool.py
@@ -33,6 +33,7 @@ import os 33 33 import sys 34 34 import argparse 35 35 import logging as log -1 36 from collections import OrderedDict 36 37 from StringIO import StringIO 37 38 from ConfigParser import RawConfigParser as ConfigParser 38 39 import json @@ -52,7 +53,7 @@ except ImportError as e: 52 53 NOTSET = object() 53 54 54 5555 -1 class MultiDict(dict):-1 56 class MultiDict(OrderedDict): 56 57 """Dict subclass with multiple values for each key. 57 58 58 59 >>> d = MultiDict()