summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authornoah <noah@656d521f-e311-0410-88e0-e7920216d269>2003-01-05 18:28:18 +0000
committernoah <noah@656d521f-e311-0410-88e0-e7920216d269>2003-01-05 18:28:18 +0000
commit6bf29f134b97fb378e3d902d75029332e52fa07d (patch)
tree183bdf8077257bde44cd093584a109c9d7e272bc
parent8a37121d9607c5f8297fc7fdb9962bac0fd95999 (diff)
downloadpexpect-6bf29f134b97fb378e3d902d75029332e52fa07d.tar.gz
Added some attributes.
git-svn-id: http://pexpect.svn.sourceforge.net/svnroot/pexpect/trunk@126 656d521f-e311-0410-88e0-e7920216d269
-rw-r--r--pexpect/pexpect.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/pexpect/pexpect.py b/pexpect/pexpect.py
index e259c00..12185ca 100644
--- a/pexpect/pexpect.py
+++ b/pexpect/pexpect.py
@@ -93,6 +93,8 @@ class spawn:
self.before = None
self.after = None
self.match = None
+ self.softspace = 0 # File-like object.
+ self.name = ''
if args is None:
self.args = split_command_line(command)
@@ -101,6 +103,7 @@ class spawn:
args.insert (0, command)
self.args = args
self.command = command
+ self.name = reduce(lambda x, y: x+' '+y, self.args)
self.__spawn()
@@ -438,7 +441,7 @@ class spawn:
raise ExceptionPexpect('Reached an unexpected state in read().')
- def write(self, text):
+ def write(self, str):
"""This is an alias for send().
This return the number of bytes actually written.
"""