diff options
author | noah <noah@656d521f-e311-0410-88e0-e7920216d269> | 2002-11-27 20:56:38 +0000 |
---|---|---|
committer | noah <noah@656d521f-e311-0410-88e0-e7920216d269> | 2002-11-27 20:56:38 +0000 |
commit | c9a1fc6f8ed53ddb864a175ba6cac426c99baa1d (patch) | |
tree | 8a45a51fad3aa10f1d58efa5d78a35d14c57742d | |
parent | d206f9e77f26f275350dd7732441fe853368622a (diff) | |
download | pexpect-c9a1fc6f8ed53ddb864a175ba6cac426c99baa1d.tar.gz |
Fixed bug in sendeof() method. Not allowed to os.write an int directly.
It must be converted to a string.
git-svn-id: http://pexpect.svn.sourceforge.net/svnroot/pexpect/trunk@122 656d521f-e311-0410-88e0-e7920216d269
-rw-r--r-- | pexpect/pexpect.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/pexpect/pexpect.py b/pexpect/pexpect.py index 899a091..90309d2 100644 --- a/pexpect/pexpect.py +++ b/pexpect/pexpect.py @@ -486,7 +486,7 @@ class spawn: try: # EOF is recognized when ICANON is set, thus ensure it is: termios.tcsetattr(fd, termios.TCSADRAIN, new) - os.write(self.child_fd, termios.CEOF) + os.write (self.child_fd, '%c' % termios.CEOF) finally: termios.tcsetattr(fd, termios.TCSADRAIN, old) # restore state |