~loggerhead-team/loggerhead/trunk-rich

« back to all changes in this revision

Viewing changes to loggerhead/controllers/__init__.py

  • Committer: Michael Hudson
  • Date: 2009-03-02 02:45:13 UTC
  • mto: This revision was merged to the branch mainline in revision 285.
  • Revision ID: michael.hudson@canonical.com-20090302024513-dk5ibqz2eo1i7iou
delete, not comment

Show diffs side-by-side

added added

removed removed

Lines of Context:
40
40
    def flush(self):
41
41
        chunk = ''.join(self.buf)
42
42
        chunk = re.sub(r'\s*\n\s*', '\n', chunk)
43
 
        #chunk = re.sub(r'[ \t]+', ' ', chunk)
44
43
        self.bytes_saved += self.buflen - len(chunk)
45
44
        self.writefunc(chunk)
46
45
        self.buf = []