summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJeff Quast <contact@jeffquast.com>2015-09-21 12:18:36 -0700
committerJeff Quast <contact@jeffquast.com>2015-09-21 12:18:36 -0700
commit599ef012942a21845f968a4bf725d46e007dcb4b (patch)
tree309e792cb73bc8cf35c900f9f0120ab36248bb05
parent944675a22ccedfda2ad8bad4ca4b852d5952883e (diff)
downloadpexpect-git-599ef012942a21845f968a4bf725d46e007dcb4b.tar.gz
Honor 'force=False' when set on p.close()
This has no change, both this method and ptyprocess method signatures match 'True' value.
-rw-r--r--pexpect/pty_spawn.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/pexpect/pty_spawn.py b/pexpect/pty_spawn.py
index 73dec56..540be2b 100644
--- a/pexpect/pty_spawn.py
+++ b/pexpect/pty_spawn.py
@@ -295,7 +295,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