summaryrefslogtreecommitdiff
path: root/host/proto/test/fio.py
diff options
context:
space:
mode:
authorNicolas Schodet2009-02-09 20:05:30 +0100
committerNicolas Schodet2009-02-09 20:05:30 +0100
commit2e95e3a33bcb34aeec66551503c692c1cb80ab61 (patch)
tree6b763ee0d1bf458da0ced13f44535b42f3b8efb8 /host/proto/test/fio.py
parent552b28da98a387d13aea7403a7e72732a913277d (diff)
* all python:
- changed tabs to spaces.
Diffstat (limited to 'host/proto/test/fio.py')
-rw-r--r--host/proto/test/fio.py24
1 files changed, 12 insertions, 12 deletions
diff --git a/host/proto/test/fio.py b/host/proto/test/fio.py
index 07646199..f520d41e 100644
--- a/host/proto/test/fio.py
+++ b/host/proto/test/fio.py
@@ -1,22 +1,22 @@
class IO:
def __init__ (self, fin = None, fout = None):
- if fin is None:
- import sys, tty
- self.fin = sys.stdin
- self.fout = sys.stdout
- tty.setcbreak (sys.stdin.fileno ())
- else:
- self.fin = fin
- self.fout = fout
+ if fin is None:
+ import sys, tty
+ self.fin = sys.stdin
+ self.fout = sys.stdout
+ tty.setcbreak (sys.stdin.fileno ())
+ else:
+ self.fin = fin
+ self.fout = fout
def read (self, *args):
- buf = self.fin.read (*args).replace ('\n', '\r')
- return buf
+ buf = self.fin.read (*args).replace ('\n', '\r')
+ return buf
def write (self, *args):
- return self.fout.write (*[i.replace ('\r', '\n') for i in args])
+ return self.fout.write (*[i.replace ('\r', '\n') for i in args])
def fileno (self):
- return self.fin.fileno ()
+ return self.fin.fileno ()