incubator-allura-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From brond...@apache.org
Subject [15/50] git commit: [#6253] Add some more file-like stuff to Writer
Date Fri, 24 May 2013 17:04:51 GMT
[#6253] Add some more file-like stuff to Writer

Signed-off-by: Tim Van Steenburgh <tvansteenburgh@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/6255
Commit: 62e3582bf81d600c9d62045e0395ded300c7c31b
Parents: bcbd2d3
Author: Tim Van Steenburgh <tvansteenburgh@gmail.com>
Authored: Tue May 21 19:59:47 2013 +0000
Committer: Dave Brondsema <dbrondsema@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)


Mime
View raw message