summaryrefslogtreecommitdiffstats
path: root/Lib
diff options
context:
space:
mode:
authorVinay Sajip <vinay_sajip@yahoo.co.uk>2012-10-16 09:28:31 (GMT)
committerVinay Sajip <vinay_sajip@yahoo.co.uk>2012-10-16 09:28:31 (GMT)
commitee892b9226be97a159823866463fb39474f55835 (patch)
tree633d9f2035600cf77e59179150326dec6c9b60cc /Lib
parent4fab8f0e067772c4c13c86056c2b659cd8e5a812 (diff)
downloadcpython-ee892b9226be97a159823866463fb39474f55835.zip
cpython-ee892b9226be97a159823866463fb39474f55835.tar.gz
cpython-ee892b9226be97a159823866463fb39474f55835.tar.bz2
Issue #16244: Remove file mode overrides.
Diffstat (limited to 'Lib')
-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: