Skip to content

send-function #23

Merged
merged 1 commit into from Apr 13, 2012
+2 −3
View
5 envoy/core.py
@@ -100,10 +100,9 @@ def expect(self, bytes, stream=None):
stream = self.std_out
pass
- def send(self, end='\n'):
+ def send(self, str, end='\n'):
"""Sends a line to std_in."""
- #TODO: Y U LINE BUFFER
- pass
+ return self._process.stdin.write(str+end)
def block(self):
"""Blocks until command finishes. Returns Response instance."""
Something went wrong with that request. Please try again.