You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@allura.apache.org by br...@apache.org on 2013/05/24 20:17:49 UTC

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

[#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/62e3582b
Tree: http://git-wip-us.apache.org/repos/asf/incubator-allura/tree/62e3582b
Diff: http://git-wip-us.apache.org/repos/asf/incubator-allura/diff/62e3582b

Branch: refs/heads/db/6007
Commit: 62e3582bf81d600c9d62045e0395ded300c7c31b
Parents: bcbd2d3
Author: Tim Van Steenburgh <tv...@gmail.com>
Authored: Tue May 21 19:59:47 2013 +0000
Committer: Dave Brondsema <db...@slashdotmedia.com>
Committed: Wed May 22 18:46:04 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/62e3582b/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)