core (main): OrderedDict is not necesasry here anymore, as dict are now ordered
This commit is contained in:
parent
75ae8160ae
commit
d9a04a36ca
1 changed files with 2 additions and 8 deletions
|
|
@ -50,11 +50,6 @@ from sat.stdui import ui_contact_list, ui_profile_manager
|
|||
import sat.plugins
|
||||
|
||||
|
||||
try:
|
||||
from collections import OrderedDict # only available from python 2.7
|
||||
except ImportError:
|
||||
from ordereddict import OrderedDict
|
||||
|
||||
log = getLogger(__name__)
|
||||
|
||||
class SAT(service.Service):
|
||||
|
|
@ -64,9 +59,8 @@ class SAT(service.Service):
|
|||
# this _init is called in startService
|
||||
log.info(f"{C.APP_NAME} {self.full_version}")
|
||||
self._cb_map = {} # map from callback_id to callbacks
|
||||
self._menus = (
|
||||
OrderedDict()
|
||||
) # dynamic menus. key: callback_id, value: menu data (dictionnary)
|
||||
# dynamic menus. key: callback_id, value: menu data (dictionnary)
|
||||
self._menus = {}
|
||||
self._menus_paths = {} # path to id. key: (menu_type, lower case tuple of path),
|
||||
# value: menu id
|
||||
self.initialised = defer.Deferred()
|
||||
|
|
|
|||
Loading…
Reference in a new issue