diff --git a/pcl_expect/spawn.py b/pcl_expect/spawn.py index 7a61475aa5fd2a96bc00b29155f6a0d910a30909..b79cbef8988cfcb29681d4054257214935a19ee4 100644 --- a/pcl_expect/spawn.py +++ b/pcl_expect/spawn.py @@ -22,7 +22,7 @@ def set_cloexec_flag(fd): old = fcntl.fcntl(fd, fcntl.F_GETFD) fcntl.fcntl(fd, fcntl.F_SETFD, old | fcntl.FD_CLOEXEC) -class spawn(pcl_expect.expectable): +class Spawn(pcl_expect.Expectable): def __init__(self, cmd): if inherit_stty: f = os.popen("stty -g") @@ -55,14 +55,14 @@ class spawn(pcl_expect.expectable): os.close(self.__pty) os.waitpid(self.__child, 0) raise OSError("exec failed") - pcl_expect.expectable.__init__(self, self.__pty) + pcl_expect.Expectable.__init__(self, self.__pty) def send(self, s): pcl_expect.debug("sending \"%s\" to fd %d" % (s, self.fileno())) os.write(self.__pty, s) def close(self): - pcl_expect.expectable.close(self) + pcl_expect.Expectable.close(self) os.close(self.__pty) return os.waitpid(self.__child, 0)