Skip to content

Commit

Permalink
remove usage of OrederedDict
Browse files Browse the repository at this point in the history
dict gained the ability to remember insertion order in py3.7, so this OrderedDict usage isn't needed any longer
  • Loading branch information
thijstriemstra authored Jul 17, 2024
1 parent 6b69584 commit d80fac7
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions luma/core/cmdline.py
Original file line number Diff line number Diff line change
@@ -1,12 +1,11 @@
# -*- coding: utf-8 -*-
# Copyright (c) 2017-2022 Richard Hull and contributors
# Copyright (c) 2017-2024 Richard Hull and contributors
# See LICENSE.rst for details.

import atexit
import inspect
import argparse
import importlib
from collections import OrderedDict


def get_choices(module_name):
Expand Down Expand Up @@ -86,9 +85,9 @@ def get_display_types():
Get ordered dict containing available display types from available luma
sub-projects.
:rtype: collections.OrderedDict
:rtype: dict
"""
display_types = OrderedDict()
display_types = dict()
for namespace in get_supported_libraries():
display_types[namespace] = get_choices(f'luma.{namespace}.device')

Expand Down

0 comments on commit d80fac7

Please sign in to comment.