Remove OrderedDict

as we're no longer supporting python 3.6
This commit is contained in:
Matthias
2021-06-13 11:45:23 +02:00
parent fb4dd6c2ac
commit eaf0aac77e
3 changed files with 6 additions and 20 deletions

View File

@@ -1,7 +1,6 @@
import csv
import logging
import sys
from collections import OrderedDict
from pathlib import Path
from typing import Any, Dict, List
@@ -154,7 +153,7 @@ def start_list_markets(args: Dict[str, Any], pairs_only: bool = False) -> None:
pairs_only=pairs_only,
active_only=active_only)
# Sort the pairs/markets by symbol
pairs = OrderedDict(sorted(pairs.items()))
pairs = dict(sorted(pairs.items()))
except Exception as e:
raise OperationalException(f"Cannot get markets. Reason: {e}") from e