diff options
Diffstat (limited to 'pexpect/pexpect.py')
-rw-r--r-- | pexpect/pexpect.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/pexpect/pexpect.py b/pexpect/pexpect.py index 1d97851..0896ef9 100644 --- a/pexpect/pexpect.py +++ b/pexpect/pexpect.py @@ -669,8 +669,8 @@ 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.' + raise ExceptionPexpect, 'Failed to disconnect from ' + \ + 'controlling tty. It is still possible to open /dev/tty.' except: # Good! We are disconnected from a controlling tty. pass |