Changeset 33:6dbb6acccbba in livinglogic.python.tipimaid

Show
Ignore:
Timestamp:
12/02/08 19:02:04 (10 years ago)
Author:
Walter Doerwald <walter@…>
Branch:
default
Message:

Simplify code.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • liaalh.py

    r32 r33  
    6262 
    6363    def writeline(self, utclogdate, server, line): 
    64         if self.utcrotate: 
    65             filename = utclogdate.strftime(self.pattern) 
    66         else: 
    67             filename = (utclogdate + self.localutcoffset).strftime(self.pattern) 
     64        if not self.utcrotate: 
     65            utclogdate += self.localutcoffset 
     66        filename = utclogdate.strftime(self.pattern) 
    6867        if self.handlevirtualhost: 
    6968            filename = filename.replace("%v", server)