Stops using OrderedDict: restores Python 2.6 compatibility

This commit is contained in:
Joao S. O. Bueno 2015-03-19 14:10:09 -03:00
parent 46d60d44a9
commit 763e5e1078
1 changed files with 1 additions and 2 deletions

View File

@ -27,7 +27,6 @@ OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
DEALINGS IN THE SOFTWARE.
'''
from collections import OrderedDict
import sys
_python3 = sys.version_info.major >= 3
@ -282,7 +281,7 @@ class multi_key_dict(object):
# store direct key as a value in an intermediate dictionary
if(not key_type in self.__dict__):
self.__setattr__(key_type, OrderedDict())
self.__setattr__(key_type, dict())
self.__dict__[key_type][key] = direct_key
# store the value in the actual dictionary