Changeset 34:49b76d528bc4 in livinglogic.python.tipimaid

Show
Ignore:
Timestamp:
12/02/08 19:15:57 (10 years ago)
Author:
Nikolas Tautenhahn <nik@…>
Branch:
default
Message:

break if/else into multiple lines to keep python 2.4 happy, fix typo

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • liaalh.py

    r32 r34  
    2929        self.updateutcoffset() 
    3030        self.handlevirtualhost = "%v" in pattern 
    31         self.run = self.run_buffered if buffertime > 0 else self.run_unbuffered 
     31        if buffertime > 0: 
     32            self.run = self.run_buffered 
     33        else: 
     34            self.run = self.run_unbuffered 
    3235 
    3336    def openfile(self, filename): 
     
    144147    p.add_option("-z", "--gzip", dest="gzip", type="int", action="store", help="If set, logs are gzipped with this compression level (lowest: 1, highest: 9)", default=None) 
    145148    p.add_option("-b", "--buffertime", dest="buffertime", type="int", action="store", help="Time in seconds for which log entries are buffered, default=0. Set to 0 to disable buffering", default=0) 
    146     p.add_option("-u", "--utcrotate", dest="utcrotate", action="store_true", help="If set, UTC zime determines the time for filenames and rotation. Otherwise local time is used.", default=False) 
     149    p.add_option("-u", "--utcrotate", dest="utcrotate", action="store_true", help="If set, UTC time determines the time for filenames and rotation. Otherwise local time is used.", default=False) 
    147150    (options, args) = p.parse_args() 
    148151    if options.gzip is not None: