You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@allura.apache.org by tv...@apache.org on 2013/05/21 22:00:07 UTC

git commit: [#6253] Add some more file-like stuff to Writer

Updated Branches:
  refs/heads/tv/6253 [created] 0df14d57c


[#6253] Add some more file-like stuff to Writer

Signed-off-by: Tim Van Steenburgh <tv...@gmail.com>


Project: http://git-wip-us.apache.org/repos/asf/incubator-allura/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-allura/commit/0df14d57
Tree: http://git-wip-us.apache.org/repos/asf/incubator-allura/tree/0df14d57
Diff: http://git-wip-us.apache.org/repos/asf/incubator-allura/diff/0df14d57

Branch: refs/heads/tv/6253
Commit: 0df14d57c9eb18215e41a1aefc0ff678b3ecd2f5
Parents: e34ca49
Author: Tim Van Steenburgh <tv...@gmail.com>
Authored: Tue May 21 19:59:47 2013 +0000
Committer: Tim Van Steenburgh <tv...@gmail.com>
Committed: Tue May 21 19:59:47 2013 +0000

----------------------------------------------------------------------
 Allura/allura/lib/helpers.py |    4 ++++
 1 files changed, 4 insertions(+), 0 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-allura/blob/0df14d57/Allura/allura/lib/helpers.py
----------------------------------------------------------------------
diff --git a/Allura/allura/lib/helpers.py b/Allura/allura/lib/helpers.py
index f2af4a6..c821301 100644
--- a/Allura/allura/lib/helpers.py
+++ b/Allura/allura/lib/helpers.py
@@ -708,10 +708,14 @@ def log_output(log):
     class Writer(object):
         def __init__(self, func):
             self.func = func
+            self.closed = False
 
         def write(self, buf):
             self.func(buf)
 
+        def flush(self):
+            pass
+
     _stdout = sys.stdout
     _stderr = sys.stderr
     sys.stdout = Writer(log.info)