Skip to content
Snippets Groups Projects
Commit cd5f133e authored by Per Cederqvist's avatar Per Cederqvist
Browse files

(Popen): New name for class popen. All references updated.

parent 04f44f23
No related merge requests found
...@@ -3,14 +3,14 @@ import os ...@@ -3,14 +3,14 @@ import os
import pcl_expect import pcl_expect
__all__ = [ __all__ = [
"popen", "Popen",
] ]
class popen(pcl_expect.expectable): class Popen(pcl_expect.Expectable):
def __init__(self, cmd): def __init__(self, cmd):
self.__cmd = os.popen(cmd, "r") self.__cmd = os.popen(cmd, "r")
pcl_expect.expectable.__init__(self, self.__cmd.fileno()) pcl_expect.Expectable.__init__(self, self.__cmd.fileno())
def close(self): def close(self):
pcl_expect.expectable.close(self) pcl_expect.Expectable.close(self)
return self.__cmd.close() return self.__cmd.close()
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment