From 1e0f66320ee7eaae0ab2887fd21f9992e0dfc057 Mon Sep 17 00:00:00 2001
From: Per Cederqvist <ceder@lysator.liu.se>
Date: Thu, 23 Oct 2003 18:31:16 +0000
Subject: [PATCH] (Spawn): New name for class spawn.  All references updated.

---
 pcl_expect/spawn.py | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/pcl_expect/spawn.py b/pcl_expect/spawn.py
index 7a61475..b79cbef 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)
 
-- 
GitLab