summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--feeds.py5
1 files changed, 2 insertions, 3 deletions
diff --git a/feeds.py b/feeds.py
index 24611e7e..7247e95c 100644
--- a/feeds.py
+++ b/feeds.py
@@ -14,15 +14,14 @@ from releng.models import Release
class BatchWritesWrapper(object):
- def __init__(self, outfile, chunks=20):
+ def __init__(self, outfile):
self.outfile = outfile
- self.chunks = chunks
self.buf = []
def write(self, s):
buf = self.buf
buf.append(s)
- if len(buf) >= self.chunks:
+ if len(buf) >= 40:
self.outfile.write(''.join(buf))
self.buf = []