@@ -523,7 +523,7 @@ def process_control_event(self, e):
523
523
self .startup ()
524
524
except IOError as e :
525
525
self .status_bar .message (
526
- _ ('Executing PYTHONSTARTUP failed: %s' ) % (str (e )))
526
+ _ ('Executing PYTHONSTARTUP failed: %s' ) % (str (e )))
527
527
528
528
elif isinstance (e , bpythonevents .UndoEvent ):
529
529
self .undo (n = e .n )
@@ -621,7 +621,7 @@ def process_key_event(self, e):
621
621
# TODO add PAD keys hack as in bpython.cli
622
622
elif e in key_dispatch [self .config .edit_current_block_key ]:
623
623
self .send_current_block_to_external_editor ()
624
- elif e in ["<ESC>" ]: #ESC
624
+ elif e in ["<ESC>" ]:
625
625
self .incremental_search_mode = None
626
626
elif e in ["<SPACE>" ]:
627
627
self .add_normal_character (' ' )
@@ -636,11 +636,11 @@ def last_word(line):
636
636
previous_word = last_word (self .rl_history .entry )
637
637
word = last_word (self .rl_history .back ())
638
638
line = self .current_line
639
- self ._set_current_line (line [:len (line )- len (previous_word )] + word ,
639
+ self ._set_current_line (line [:len (line ) - len (previous_word )] + word ,
640
640
reset_rl_history = False )
641
641
self ._set_cursor_offset (
642
- self .cursor_offset - len (previous_word ) + len (word ),
643
- reset_rl_history = False )
642
+ self .cursor_offset - len (previous_word ) + len (word ),
643
+ reset_rl_history = False )
644
644
645
645
def incremental_search (self , reverse = False , include_current = False ):
646
646
if self .incremental_search_mode is None :
@@ -870,7 +870,7 @@ def add_to_incremental_search(self, char=None, backspace=False):
870
870
elif self .incremental_search_mode == 'incremental_search' :
871
871
self .incremental_search (include_current = True )
872
872
else :
873
- raise ValueError ('add_to_incremental_search should only be called in a special mode' )
873
+ raise ValueError ('add_to_incremental_search not in a special mode' )
874
874
875
875
def update_completion (self , tab = False ):
876
876
"""Update visible docstring and matches, and possibly hide/show completion box"""
0 commit comments