MCPcopy Create free account
hub / github.com/bpython/bpython / get_key_no_doublebind

Method get_key_no_doublebind

bpython/config.py:232–245  ·  view source on GitHub ↗
(command: str)

Source from the content-addressed store, hash-verified

230 }
231
232 def get_key_no_doublebind(command: str) -> str:
233 default_commands_to_keys = self.defaults["keyboard"]
234 requested_key = config.get("keyboard", command)
235
236 try:
237 default_command = default_keys_to_commands[requested_key]
238 if default_commands_to_keys[default_command] == config.get(
239 "keyboard", default_command
240 ):
241 setattr(self, f"{default_command}_key", "")
242 except KeyError:
243 pass
244
245 return requested_key
246
247 self.config_path = (
248 config_path.absolute() if config_path is not None else None

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected