summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authornoah <noah@656d521f-e311-0410-88e0-e7920216d269>2002-09-20 18:15:57 +0000
committernoah <noah@656d521f-e311-0410-88e0-e7920216d269>2002-09-20 18:15:57 +0000
commitb3e4c5c6e669821504c72b9e7294f7407fc8e169 (patch)
tree45f10aadac297781219e3105c64ac7e7f550a75b
parent52813853bf50dd9f9e0cde9e2cf3663921991f39 (diff)
downloadpexpect-b3e4c5c6e669821504c72b9e7294f7407fc8e169.tar.gz
Added default '' empty string to write() method.
git-svn-id: http://pexpect.svn.sourceforge.net/svnroot/pexpect/trunk@72 656d521f-e311-0410-88e0-e7920216d269
-rw-r--r--pexpect/pexpect.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/pexpect/pexpect.py b/pexpect/pexpect.py
index 93a7d18..02d6519 100644
--- a/pexpect/pexpect.py
+++ b/pexpect/pexpect.py
@@ -425,7 +425,7 @@ class spawn:
"""
return os.write(self.child_fd, text)
- def sendline(self, text):
+ def sendline(self, text=''):
"""This is like send(), but it adds a line separator.
This return the number of bytes actually written.
"""