mirror of
https://github.com/python/cpython.git
synced 2025-08-04 17:08:35 +00:00
Issue #16244: Remove file mode overrides.
This commit is contained in:
parent
4fab8f0e06
commit
ee892b9226
1 changed files with 0 additions and 2 deletions
|
@ -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:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue