summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJeff Quast <contact@jeffquast.com>2014-06-01 20:52:21 -0700
committerJeff Quast <contact@jeffquast.com>2014-06-01 20:52:21 -0700
commitbbfa00e11c6ef15dc4e0bc3cffcd36a0dac565b9 (patch)
tree6201b14ac02a99f7dc417a64ecdad64fb31da415
parentfcb539d24c44627a838cc13068e4aedf8a4edc34 (diff)
parente97453e9e060964a6cb4a67fe573bef91054bf03 (diff)
downloadpexpect-bbfa00e11c6ef15dc4e0bc3cffcd36a0dac565b9.tar.gz
Merge pull request #46 from a-tal/master
remove redundant raise in __pty_make_controlling_tty()
-rw-r--r--pexpect/__init__.py2
1 files changed, 0 insertions, 2 deletions
diff --git a/pexpect/__init__.py b/pexpect/__init__.py
index 6be876e..631dd56 100644
--- a/pexpect/__init__.py
+++ b/pexpect/__init__.py
@@ -704,8 +704,6 @@ class spawn(object):
fd = os.open("/dev/tty", os.O_RDWR | os.O_NOCTTY)
if fd >= 0:
os.close(fd)
- raise ExceptionPexpect('Failed to disconnect from ' +
- 'controlling tty. It is still possible to open /dev/tty.')
# which exception, shouldnt' we catch explicitly .. ?
except:
# Good! We are disconnected from a controlling tty.