Skip to content

Commit

Permalink
Uses OrderedDict for STRUCT in IonPyDict or MultiMap. (#125)
Browse files Browse the repository at this point in the history
  • Loading branch information
tgregg committed Mar 4, 2020
1 parent 1e8b1e2 commit 37604cf
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions amazon/ion/core.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
from __future__ import division
from __future__ import print_function

from collections import MutableMapping, MutableSequence
from collections import MutableMapping, MutableSequence, OrderedDict
from datetime import datetime, timedelta, tzinfo
from decimal import Decimal, ROUND_FLOOR, Context, Inexact
from math import isnan
Expand Down Expand Up @@ -609,7 +609,7 @@ class Multimap(MutableMapping):

def __init__(self, *args, **kwargs):
super(Multimap, self).__init__()
self.__store = {}
self.__store = OrderedDict()
if args is not None and len(args) > 0:
for key, value in six.iteritems(args[0]):
self.__store[key] = MultimapValue(value)
Expand Down

0 comments on commit 37604cf

Please sign in to comment.