Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d609b0c commit afad147Copy full SHA for afad147
1 file changed
Lib/logging/handlers.py
@@ -353,10 +353,10 @@ def getFilesToDelete(self):
353
suffix = fileName[plen:]
354
if self.extMatch.match(suffix):
355
result.append(os.path.join(dirName, fileName))
356
- result.sort()
357
if len(result) < self.backupCount:
358
result = []
359
else:
+ result.sort()
360
result = result[:len(result) - self.backupCount]
361
return result
362
0 commit comments