Skip to content
Permalink
Browse files

fix #18050 (followup f6269c4)

  • Loading branch information
jef-n committed Feb 5, 2018
1 parent fe31c28 commit 325af486807122db6946dcaeef22236b41f4d512
Showing with 4 additions and 2 deletions.
  1. +4 −2 python/console/console_sci.py
@@ -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):

0 comments on commit 325af48

Please sign in to comment.
You can’t perform that action at this time.