Skip to content

Commit

Permalink
Break under for loop
Browse files Browse the repository at this point in the history
  • Loading branch information
jonarrien committed Jun 23, 2015
1 parent 7a9c5ee commit 6c50ecd
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions QuickExec.py
Original file line number Diff line number Diff line change
Expand Up @@ -96,13 +96,13 @@ def read_stderr(self):
data = ''
for row in self.proc.stderr.readlines():
data += str(row)
if data != "":
if self.listener:
self.listener.on_data(self, data)
else:
self.proc.stderr.close()
self.proc.terminate()
break
if data != "":
if self.listener:
self.listener.on_data(self, data)
else:
self.proc.stderr.close()
self.proc.terminate()
break

class QuickExecCommand(sublime_plugin.WindowCommand, ProcessListener):
def run(self, cmd = [], file_regex = "", line_regex = "", working_dir = "",
Expand Down

0 comments on commit 6c50ecd

Please sign in to comment.