Skip to content

Commit

Permalink
fix #18050 (followup f6269c4)
Browse files Browse the repository at this point in the history
  • Loading branch information
jef-n committed Feb 5, 2018
1 parent fe31c28 commit 325af48
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions python/console/console_sci.py
Expand Up @@ -614,14 +614,16 @@ def write(self, txt):
sys.stderr.write(txt)

def writeCMD(self, txt):
sys.stdout.fire_keyboard_interrupt = False
if sys.stdout:
sys.stdout.fire_keyboard_interrupt = False
if len(txt) > 0:
getCmdString = self.text()
prompt = getCmdString[0:4]
sys.stdout.write(prompt + txt + '\n')

def runsource(self, source, filename='<input>', symbol='single'):
sys.stdout.fire_keyboard_interrupt = False
if sys.stdout:
sys.stdout.fire_keyboard_interrupt = False
hook = sys.excepthook
try:
def excepthook(etype, value, tb):
Expand Down

0 comments on commit 325af48

Please sign in to comment.