diff options
author | Vinay Sajip <vinay_sajip@yahoo.co.uk> | 2012-10-16 09:32:13 (GMT) |
---|---|---|
committer | Vinay Sajip <vinay_sajip@yahoo.co.uk> | 2012-10-16 09:32:13 (GMT) |
commit | e7e7af45587b1a5f2486c8326f705061c44e66c3 (patch) | |
tree | f50ac4a6065b21b2153e0e336002152c211e7d92 /Lib/logging | |
parent | 38049bb251b90cfc09fb88d25824d464c630586f (diff) | |
parent | ee892b9226be97a159823866463fb39474f55835 (diff) | |
download | cpython-e7e7af45587b1a5f2486c8326f705061c44e66c3.zip cpython-e7e7af45587b1a5f2486c8326f705061c44e66c3.tar.gz cpython-e7e7af45587b1a5f2486c8326f705061c44e66c3.tar.bz2 |
Issue #16244: Merged change from 3.2.
Diffstat (limited to 'Lib/logging')
-rw-r--r-- | Lib/logging/handlers.py | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/Lib/logging/handlers.py b/Lib/logging/handlers.py index 2918360..f286cd6 100644 --- a/Lib/logging/handlers.py +++ b/Lib/logging/handlers.py @@ -172,7 +172,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): @@ -381,7 +380,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: |