removes unnecessary import

This commit is contained in:
onyx-and-iris 2023-09-27 21:27:10 +01:00
parent 2db268551c
commit e9b9295a46

View File

@ -1,4 +1,4 @@
from . import config, util from . import config
from .kinds import request_kind_map from .kinds import request_kind_map
@ -44,7 +44,7 @@ def _make_gestures(kind_id):
defaults[f"kb:NVDA+shift+{i}"] = "bus_assignment" defaults[f"kb:NVDA+shift+{i}"] = "bus_assignment"
abc = config.get("keybinds") abc = config.get("keybinds")
if abc: if abc:
overrides = {f"kb:{util.remove_prefix(k, 'kb:')}": v for k, v in abc.items()} overrides = {f"kb:{remove_prefix(k, 'kb:')}": v for k, v in abc.items()}
matching_values = set(defaults.values()).intersection(set(overrides.values())) matching_values = set(defaults.values()).intersection(set(overrides.values()))
defaults = {k: v for k, v in defaults.items() if v not in matching_values} defaults = {k: v for k, v in defaults.items() if v not in matching_values}
return {**defaults, **overrides} return {**defaults, **overrides}