diff options
author | Thomas Kluyver <takowl@gmail.com> | 2015-09-22 14:30:48 +0100 |
---|---|---|
committer | Thomas Kluyver <takowl@gmail.com> | 2015-09-22 14:30:48 +0100 |
commit | a8e0b19beb06500c5d92597a4a5b4e4e58ecc85b (patch) | |
tree | b7ac7893e2bb5e42ffa8b856790e3c5104026eb1 | |
parent | 767cf908c189f9acb9d5c422e1dda2612d8c005d (diff) | |
parent | 599ef012942a21845f968a4bf725d46e007dcb4b (diff) | |
download | pexpect-a8e0b19beb06500c5d92597a4a5b4e4e58ecc85b.tar.gz |
Merge pull request #264 from pexpect/bugfix-honor-force-close
Honor 'force=False' when set on p.close()
-rw-r--r-- | pexpect/pty_spawn.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/pexpect/pty_spawn.py b/pexpect/pty_spawn.py index 3e28b74..c398af4 100644 --- a/pexpect/pty_spawn.py +++ b/pexpect/pty_spawn.py @@ -292,7 +292,7 @@ class spawn(SpawnBase): and SIGINT). ''' self.flush() - self.ptyproc.close() + self.ptyproc.close(force=force) self.isalive() # Update exit status from ptyproc self.child_fd = -1 |