Skip to content

Commit

Permalink
Implementing comments from spyder-ide#2251.
Browse files Browse the repository at this point in the history
  • Loading branch information
michalgregor committed Jun 18, 2016
1 parent 0ea7916 commit fb77e2c
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions spyderlib/widgets/externalshell/baseshell.py
Expand Up @@ -302,7 +302,6 @@ def write_output(self):
self.buffer_lock.lock()
self.buffer.append(self.get_stdout())
self.buffer_lock.unlock()

return

self.shell.write(self.get_stdout(), flush=True)
Expand All @@ -313,10 +312,10 @@ def write_output(self):
self.buffer = []
self.buffer_lock.unlock()

if not len(messages): break
else:
for msg in messages:
self.shell.write(msg, flush=True)
if not messages:
break

self.shell.write("\n".join(messages), flush=True)

self.write_lock.unlock()

Expand Down

0 comments on commit fb77e2c

Please sign in to comment.