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

(Telnet): New name for class telnet. All references updated.

parent 1e0f6632
No related branches found
No related tags found
No related merge requests found
...@@ -3,13 +3,13 @@ import telnetlib ...@@ -3,13 +3,13 @@ import telnetlib
import pcl_expect import pcl_expect
__all__ = [ __all__ = [
"telnet", "Telnet",
] ]
class telnet(pcl_expect.expectable): class Telnet(pcl_expect.Expectable):
def __init__(self, host, port): def __init__(self, host, port):
self.telnet = telnetlib.Telnet(host, port) self.telnet = telnetlib.Telnet(host, port)
pcl_expect.expectable.__init__(self, self.telnet.fileno()) pcl_expect.Expectable.__init__(self, self.telnet.fileno())
def _read(self): def _read(self):
try: try:
...@@ -22,6 +22,6 @@ class telnet(pcl_expect.expectable): ...@@ -22,6 +22,6 @@ class telnet(pcl_expect.expectable):
self.telnet.write(s) self.telnet.write(s)
def close(self): def close(self):
pcl_expect.expectable.close(self) pcl_expect.Expectable.close(self)
self.telnet.close() self.telnet.close()
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment