From 47717d0dec89e60a1a86e55e111527904f8f53fb Mon Sep 17 00:00:00 2001
From: Per Cederqvist <ceder@lysator.liu.se>
Date: Tue, 15 Mar 2005 13:08:44 +0000
Subject: [PATCH] (Popen.__init__): Renamed the command argument from cmd to
 command, to 	adhere to the os.popen convention.  Improved documentation.

---
 pcl_expect/popen.py | 7 ++++---
 1 file changed, 4 insertions(+), 3 deletions(-)

diff --git a/pcl_expect/popen.py b/pcl_expect/popen.py
index 72f9ebf..975b2fa 100644
--- a/pcl_expect/popen.py
+++ b/pcl_expect/popen.py
@@ -28,9 +28,10 @@ __all__ = [
     ]
 
 class Popen(pcl_expect.Expectable):
-    def __init__(self, cmd):
-        """Run cmd via os.popen."""
-        self.__cmd = os.popen(cmd, "r")
+    def __init__(self, command):
+        """Run command via os.popen, reading its output.
+        """
+        self.__cmd = os.popen(command, "r")
         pcl_expect.Expectable.__init__(self, self.__cmd.fileno())
 
     def close(self):
-- 
GitLab