[New-bugs-announce] [issue30989] Sort only when needed in TimedRotatingFileHandler's getFilesToDelete

Lovesh Harchandani report at bugs.python.org
Sat Jul 22 03:17:22 EDT 2017


New submission from Lovesh Harchandani:

At `/Lib/logging/handlers.py` in `TimedRotatingFileHandler`'s `getFilesToDelete` method, filenames are sorted using `result.sort()` regardless of `len(result)`, if `len(result)` < backupCount, sorting is not required.

----------
messages: 298839
nosy: Lovesh Harchandani
priority: normal
severity: normal
status: open
title: Sort only when needed in TimedRotatingFileHandler's getFilesToDelete
versions: Python 3.5, Python 3.6, Python 3.7

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue30989>
_______________________________________


More information about the New-bugs-announce mailing list