summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--Lib/logging/handlers.py2
1 files changed, 0 insertions, 2 deletions
diff --git a/Lib/logging/handlers.py b/Lib/logging/handlers.py
index 2e29f92..8349d3a 100644
--- a/Lib/logging/handlers.py
+++ b/Lib/logging/handlers.py
@@ -137,7 +137,6 @@ class RotatingFileHandler(BaseRotatingHandler):
if os.path.exists(dfn):
os.remove(dfn)
os.rename(self.baseFilename, dfn)
- self.mode = 'w'
self.stream = self._open()
def shouldRollover(self, record):
@@ -345,7 +344,6 @@ class TimedRotatingFileHandler(BaseRotatingHandler):
if self.backupCount > 0:
for s in self.getFilesToDelete():
os.remove(s)
- self.mode = 'w'
self.stream = self._open()
newRolloverAt = self.computeRollover(currentTime)
while newRolloverAt <= currentTime: