]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
Use a real bool for a flag option.
authorGeorg Brandl <georg@python.org>
Mon, 8 Jun 2009 08:53:39 +0000 (08:53 +0000)
committerGeorg Brandl <georg@python.org>
Mon, 8 Jun 2009 08:53:39 +0000 (08:53 +0000)
Lib/logging/handlers.py

index d9acb87254ee8a83be5f4e0debe7a54665fdbdd4..296237b4159af025cdacb873219feda676a6e950 100644 (file)
@@ -155,7 +155,7 @@ class TimedRotatingFileHandler(BaseRotatingHandler):
     If backupCount is > 0, when rollover is done, no more than backupCount
     files are kept - the oldest ones are deleted.
     """
-    def __init__(self, filename, when='h', interval=1, backupCount=0, encoding=None, delay=0, utc=0):
+    def __init__(self, filename, when='h', interval=1, backupCount=0, encoding=None, delay=0, utc=False):
         BaseRotatingHandler.__init__(self, filename, 'a', encoding, delay)
         self.when = when.upper()
         self.backupCount = backupCount