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

(User): New name for class user. All references updated.

parent 9c2aa79f
No related branches found
No related tags found
No related merge requests found
...@@ -6,7 +6,7 @@ import termios ...@@ -6,7 +6,7 @@ import termios
import pcl_expect import pcl_expect
__all__ = [ __all__ = [
"user", "User",
"RAW", "RAW",
"CBREAK", "CBREAK",
] ]
...@@ -33,7 +33,7 @@ def _restore(): ...@@ -33,7 +33,7 @@ def _restore():
class user(pcl_expect.expectable): class User(pcl_expect.Expectable):
def __init__(self, mode = None): def __init__(self, mode = None):
fd = sys.stdin.fileno() fd = sys.stdin.fileno()
...@@ -47,12 +47,12 @@ class user(pcl_expect.expectable): ...@@ -47,12 +47,12 @@ class user(pcl_expect.expectable):
elif mode != None: elif mode != None:
raise pcl_expect.BadArgs() raise pcl_expect.BadArgs()
pcl_expect.expectable.__init__(self, fd) pcl_expect.Expectable.__init__(self, fd)
def send(self, s): def send(self, s):
sys.stdout.write(s) sys.stdout.write(s)
sys.stdout.flush() sys.stdout.flush()
def close(self): def close(self):
pcl_expect.expectable.close(self) pcl_expect.Expectable.close(self)
_restore() _restore()
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment