Commit bbcf1a0b authored by David Wilson's avatar David Wilson

Fix confusing return statements, closes #67.

parent 3831ac36
......@@ -80,7 +80,8 @@ class Stream(mitogen.master.Stream):
time.time() + 10.0):
LOG.debug('%r: received %r', self, buf)
if buf.endswith('EC0\n'):
return self._ec0_received()
self._ec0_received()
return
elif PERMDENIED_PROMPT in buf.lower():
if self.password is not None and password_sent:
raise PasswordError(self.password_incorrect_msg)
......
......@@ -71,7 +71,8 @@ class Stream(mitogen.master.Stream):
time.time() + 10.0):
LOG.debug('%r: received %r', self, buf)
if buf.endswith('EC0\n'):
return self._ec0_received()
self._ec0_received()
return
elif PASSWORD_PROMPT in buf.lower():
if self.password is None:
raise PasswordError(self.password_required_msg)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment