There was an error while loading. Please reload this page.
1 parent 3a806b1 commit 882e476Copy full SHA for 882e476
Lib/logging/handlers.py
@@ -356,7 +356,8 @@ def getFilesToDelete(self):
356
dirName, baseName = os.path.split(self.baseFilename)
357
fileNames = os.listdir(dirName)
358
result = []
359
- prefix = baseName + "."
+ # See bpo-44753: Don't use the extension when computing the prefix.
360
+ prefix = os.path.splitext(baseName)[0] + "."
361
plen = len(prefix)
362
for fileName in fileNames:
363
if fileName[:plen] == prefix:
0 commit comments