Skip to content
Permalink
Browse files
fix #18050 (followup f6269c4)
  • Loading branch information
jef-n committed Feb 5, 2018
1 parent fe31c28 commit 325af48
Showing 1 changed file with 4 additions and 2 deletions.
@@ -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.