summaryrefslogtreecommitdiffstats
path: root/Lib
diff options
context:
space:
mode:
authorVinay Sajip <vinay_sajip@yahoo.co.uk>2012-10-16 09:33:30 (GMT)
committerVinay Sajip <vinay_sajip@yahoo.co.uk>2012-10-16 09:33:30 (GMT)
commit3ba726ce04af5092863b871229666b5b94a2aabc (patch)
tree3a894b52f85a9be44f0f9bab20ca706dffc489a5 /Lib
parentc7633e684b91b4bd22bd445180e5fac21368bccf (diff)
parente7e7af45587b1a5f2486c8326f705061c44e66c3 (diff)
downloadcpython-3ba726ce04af5092863b871229666b5b94a2aabc.zip
cpython-3ba726ce04af5092863b871229666b5b94a2aabc.tar.gz
cpython-3ba726ce04af5092863b871229666b5b94a2aabc.tar.bz2
Closes #16244: Merged change from 3.3.
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 fbc59fa..6b73b7a 100644
--- a/Lib/logging/handlers.py
+++ b/Lib/logging/handlers.py
@@ -170,7 +170,6 @@ class RotatingFileHandler(BaseRotatingHandler):
if os.path.exists(dfn):
os.remove(dfn)
self.rotate(self.baseFilename, dfn)
- self.mode = 'w'
self.stream = self._open()
def shouldRollover(self, record):
@@ -379,7 +378,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: