mirror of
https://github.com/python/cpython.git
synced 2025-08-30 21:48:47 +00:00
Use a real bool for a flag option.
This commit is contained in:
parent
0eaab97ad0
commit
96f05e52a7
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue