Changeset 7:52ea1a2a4aa6 in livinglogic.python.tipimaid

Show
Ignore:
Timestamp:
11/19/08 14:46:07 (10 years ago)
Author:
Walter Doerwald <walter@…>
Branch:
default
Message:

More whitespace stuff. Import gzip globally.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • liaalh.py

    r6 r7  
    33 
    44 
    5 import sys, os, datetime, errno, bisect, re 
     5import sys, os, datetime, errno, bisect, re, gzip 
    66 
    77 
     
    1313        self.servers = {} 
    1414        self.buffertime = datetime.timedelta(seconds=buffertime) 
    15         if gzip_logs is not None: 
    16             import gzip 
    1715 
    1816    def sorted_insert(self, logline): 
     
    2321        self.write() 
    2422 
    25  
    2623    def flush(self): 
    2724        self.write(all=True) 
    28  
    2925 
    3026    def write(self, all=False): 
     
    6056            self.data.pop(0) 
    6157            f.flush() 
    62  
    6358 
    6459    def openfile(self, filename):