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 <rep...@bugs.python.org>
<http://bugs.python.org/issue30989>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to