From 2e95e3a33bcb34aeec66551503c692c1cb80ab61 Mon Sep 17 00:00:00 2001 From: Nicolas Schodet Date: Mon, 9 Feb 2009 20:05:30 +0100 Subject: * all python: - changed tabs to spaces. --- host/proto/popen_io.py | 22 +++++++++++----------- 1 file changed, 11 insertions(+), 11 deletions(-) (limited to 'host/proto/popen_io.py') diff --git a/host/proto/popen_io.py b/host/proto/popen_io.py index 235151d3..0f582802 100644 --- a/host/proto/popen_io.py +++ b/host/proto/popen_io.py @@ -29,22 +29,22 @@ class PopenIO: convert from and to \r and \n.""" def __init__ (self, cmd): - """Initialise and start the given commande line.""" - fout, fin = os.popen2 (cmd, 'b', 0) - time.sleep (0.2) - self.fin = fin - self.fout = fout + """Initialise and start the given commande line.""" + fout, fin = os.popen2 (cmd, 'b', 0) + time.sleep (0.2) + 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 () def close (self): - self.fin.close () - self.fout.close () + self.fin.close () + self.fout.close () -- cgit v1.2.3