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 4fab8f0 commit ee892b9Copy full SHA for ee892b9
1 file changed
Lib/logging/handlers.py
@@ -137,7 +137,6 @@ def doRollover(self):
137
if os.path.exists(dfn):
138
os.remove(dfn)
139
os.rename(self.baseFilename, dfn)
140
- self.mode = 'w'
141
self.stream = self._open()
142
143
def shouldRollover(self, record):
@@ -345,7 +344,6 @@ def doRollover(self):
345
344
if self.backupCount > 0:
346
for s in self.getFilesToDelete():
347
os.remove(s)
348
349
350
newRolloverAt = self.computeRollover(currentTime)
351
while newRolloverAt <= currentTime:
0 commit comments