Dolda2000 GitWeb
/
fulbank.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
c526374
)
auth: Fixed typos.
author
Fredrik Tolf
<fredrik@dolda2000.com>
Wed, 6 Jun 2018 13:35:00 +0000
(15:35 +0200)
committer
Fredrik Tolf
<fredrik@dolda2000.com>
Wed, 6 Jun 2018 13:35:00 +0000
(15:35 +0200)
fulbank/auth.py
patch
|
blob
|
blame
|
history
diff --git
a/fulbank/auth.py
b/fulbank/auth.py
index
1a9f13d
..
10c1afe
100644
(file)
--- a/
fulbank/auth.py
+++ b/
fulbank/auth.py
@@
-47,9
+47,9
@@
class termconv(conv):
finally:
termios.tcsetattr(self.ifp.fileno(), termios.TCSANOW, bka)
finally:
termios.tcsetattr(self.ifp.fileno(), termios.TCSANOW, bka)
-class ctermconv(conv):
+class ctermconv(
term
conv):
def __init__(self, fp):
def __init__(self, fp):
- super().__init__(fp)
+ super().__init__(fp
, fp
)
self.cfp = fp
def close(self):
self.cfp = fp
def close(self):
@@
-64,7
+64,7
@@
null = conv()
stdioconv = termconv(sys.stdin, sys.stdout)
def ttyconv():
stdioconv = termconv(sys.stdin, sys.stdout)
def ttyconv():
- return ctermconv(io.TextIOWrapper(io.FileIO(os.open("/dev/tty", os.O_RDWR | os.O_NCTTY), "r+")))
+ return ctermconv(io.TextIOWrapper(io.FileIO(os.open("/dev/tty", os.O_RDWR | os.O_N
O
CTTY), "r+")))
def default():
return null
def default():
return null