Issue #16244: Remove file mode overrides.

This commit is contained in:
Vinay Sajip 2012-10-16 10:27:00 +01:00
parent 0cffd6be56
commit 94540d4031
1 changed files with 0 additions and 2 deletions

View File

@ -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):
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: