##// END OF EJS Templates
format
M Bussonnier -
Show More
@@ -515,10 +515,12 class TerminalInteractiveShell(InteractiveShell):
515 create_identifier(binding.command): binding.command
515 create_identifier(binding.command): binding.command
516 for binding in KEY_BINDINGS
516 for binding in KEY_BINDINGS
517 }
517 }
518 allowed_commands.update({
518 allowed_commands.update(
519 {
519 create_identifier(command): command
520 create_identifier(command): command
520 for command in UNASSIGNED_ALLOWED_COMMANDS
521 for command in UNASSIGNED_ALLOWED_COMMANDS
521 })
522 }
523 )
522 shortcuts_to_skip = []
524 shortcuts_to_skip = []
523 shortcuts_to_add = []
525 shortcuts_to_add = []
524
526
@@ -591,12 +593,14 class TerminalInteractiveShell(InteractiveShell):
591 RuntimeBinding(
593 RuntimeBinding(
592 command,
594 command,
593 keys=new_keys or old_keys,
595 keys=new_keys or old_keys,
594 filter=filter_from_string(new_filter)
596 filter=(
597 filter_from_string(new_filter)
595 if new_filter is not None
598 if new_filter is not None
596 else (
599 else (
597 old_filter
600 old_filter
598 if old_filter is not None
601 if old_filter is not None
599 else filter_from_string("always")
602 else filter_from_string("always")
603 )
600 ),
604 ),
601 )
605 )
602 )
606 )
General Comments 0
You need to be logged in to leave comments. Login now