diff options
author | noah <noah@656d521f-e311-0410-88e0-e7920216d269> | 2003-04-20 06:30:07 +0000 |
---|---|---|
committer | noah <noah@656d521f-e311-0410-88e0-e7920216d269> | 2003-04-20 06:30:07 +0000 |
commit | 19e3cae80665ed6a1739a2484106dbba72e28e33 (patch) | |
tree | fa336fd74a268175a0abc6ed816f7b0858fbe38f | |
parent | ba57ffbd1bf1af92dc3b54e6927dc99a5b34a52f (diff) | |
download | pexpect-19e3cae80665ed6a1739a2484106dbba72e28e33.tar.gz |
Clarified comment on close behavior.
git-svn-id: http://pexpect.svn.sourceforge.net/svnroot/pexpect/trunk@176 656d521f-e311-0410-88e0-e7920216d269
-rw-r--r-- | pexpect/pexpect.py | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/pexpect/pexpect.py b/pexpect/pexpect.py index f2f2d7b..f9256c8 100644 --- a/pexpect/pexpect.py +++ b/pexpect/pexpect.py @@ -214,10 +214,12 @@ class spawn: return self.child_fd def close (self): # File-like object. - """ This closes the file descriptor of the child application. + """ This closes the connection with the child application. It makes no attempt to actually kill the child or wait for its status. If the file descriptor was set by passing a file descriptor to the constructor then this method raises an exception. + Note that calling close() more than once is valid. + This emulates standard Python behavior with files. """ if self.child_fd != -1: if not self.__child_fd_owner: |