Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit b61d88a

Browse files
committed
fix indentation by tabs
1 parent fe67899 commit b61d88a

1 file changed

Lines changed: 7 additions & 7 deletions

File tree

IPython/core/displayhook.py

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff 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

0 commit comments

Comments
 (0)