File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -84,19 +84,19 @@ def check_for_underscore(self):
8484 def quiet (self ):
8585 """Should we silence the display hook because of ';'?"""
8686 # do not print output if input ends in ';'
87-
88- cell = self .shell .history_manager .input_hist_parsed [self .prompt_count ]
87+
88+ cell = self .shell .history_manager .input_hist_parsed [self .prompt_count ]
8989 sio = io .StringIO (cell )
9090 tokens = list (tokenize .generate_tokens (sio .readline ))
91-
91+
9292 try :
93- for token in reversed (tokens ):
93+ for token in reversed (tokens ):
9494 if token .type in (tokenize .ENDMARKER , tokenize .COMMENT ):
95- continue
95+ continue
9696 if (token .type == tokenize .OP ) and (token .string == ';' ):
97- return True
97+ return True
9898 else :
99- return False
99+ return False
100100 except IndexError :
101101 # some uses of ipshellembed may fail here
102102 return False
You can’t perform that action at this time.
0 commit comments