Skip to content

Commit 3e98f62

Browse files
Make OrderedDict into a dict (as per astropy#10888)
1 parent 9e640b9 commit 3e98f62

1 file changed

Lines changed: 4 additions & 5 deletions

File tree

‎astropy/io/misc/asdf/tags/time/tests/test_time.py‎

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@
66
asdf = pytest.importorskip('asdf')
77

88
import datetime
9-
from collections import OrderedDict
109

1110
import numpy as np
1211

@@ -18,7 +17,7 @@
1817

1918

2019
def _flatten_combiners(schema):
21-
newschema = OrderedDict()
20+
newschema = dict()
2221

2322
def add_entry(path, schema, combiner):
2423
# TODO: Simplify?
@@ -31,13 +30,13 @@ def add_entry(path, schema, combiner):
3130
cursor.append({})
3231
cursor = cursor[part]
3332
elif part == 'items':
34-
cursor = cursor.setdefault('items', OrderedDict())
33+
cursor = cursor.setdefault('items', dict())
3534
else:
36-
cursor = cursor.setdefault('properties', OrderedDict())
35+
cursor = cursor.setdefault('properties', dict())
3736
if i < len(path) - 1 and isinstance(path[i+1], int):
3837
cursor = cursor.setdefault(part, [])
3938
else:
40-
cursor = cursor.setdefault(part, OrderedDict())
39+
cursor = cursor.setdefault(part, dict())
4140

4241
cursor.update(schema)
4342

0 commit comments

Comments
 (0)