diff --git a/Lib/logging/handlers.py b/Lib/logging/handlers.py index dcb7fd20f96..26dfe4a1d18 100644 --- a/Lib/logging/handlers.py +++ b/Lib/logging/handlers.py @@ -139,7 +139,6 @@ class RotatingFileHandler(BaseRotatingHandler): os.remove(dfn) os.rename(self.baseFilename, dfn) #print "%s -> %s" % (self.baseFilename, dfn) - self.mode = 'w' self.stream = self._open() def shouldRollover(self, record): @@ -354,7 +353,6 @@ class TimedRotatingFileHandler(BaseRotatingHandler): for s in self.getFilesToDelete(): os.remove(s) #print "%s -> %s" % (self.baseFilename, dfn) - self.mode = 'w' self.stream = self._open() newRolloverAt = self.computeRollover(currentTime) while newRolloverAt <= currentTime: