Source

python-utils / Tee.py

Diff from to

File Tee.py

     def write(self, data):
         self.file.write(data)
         self.stdout.write(data)
-    def flush(self, data):
-        self.file.flush(data)
-        self.stdout.flush(data)
+    def flush(self):
+        self.file.flush()
+        self.stdout.flush()