Commit 94540d40 authored by Vinay Sajip's avatar Vinay Sajip

Issue #16244: Remove file mode overrides.

parent 0cffd6be
...@@ -139,7 +139,6 @@ class RotatingFileHandler(BaseRotatingHandler): ...@@ -139,7 +139,6 @@ class RotatingFileHandler(BaseRotatingHandler):
os.remove(dfn) os.remove(dfn)
os.rename(self.baseFilename, dfn) os.rename(self.baseFilename, dfn)
#print "%s -> %s" % (self.baseFilename, dfn) #print "%s -> %s" % (self.baseFilename, dfn)
self.mode = 'w'
self.stream = self._open() self.stream = self._open()
def shouldRollover(self, record): def shouldRollover(self, record):
...@@ -354,7 +353,6 @@ class TimedRotatingFileHandler(BaseRotatingHandler): ...@@ -354,7 +353,6 @@ class TimedRotatingFileHandler(BaseRotatingHandler):
for s in self.getFilesToDelete(): for s in self.getFilesToDelete():
os.remove(s) os.remove(s)
#print "%s -> %s" % (self.baseFilename, dfn) #print "%s -> %s" % (self.baseFilename, dfn)
self.mode = 'w'
self.stream = self._open() self.stream = self._open()
newRolloverAt = self.computeRollover(currentTime) newRolloverAt = self.computeRollover(currentTime)
while newRolloverAt <= currentTime: while newRolloverAt <= currentTime:
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment