[Python-checkins] cpython (3.2): Issue #16244: Remove file mode overrides.
vinay.sajip
python-checkins at python.org
Tue Oct 16 11:33:50 CEST 2012
http://hg.python.org/cpython/rev/5e770555be62
changeset: 79732:5e770555be62
branch: 3.2
parent: 79727:1f1bf6a3abbc
user: Vinay Sajip <vinay_sajip at yahoo.co.uk>
date: Tue Oct 16 10:28:31 2012 +0100
summary:
Issue #16244: Remove file mode overrides.
files:
Lib/logging/handlers.py | 2 --
1 files changed, 0 insertions(+), 2 deletions(-)
diff --git a/Lib/logging/handlers.py b/Lib/logging/handlers.py
--- a/Lib/logging/handlers.py
+++ b/Lib/logging/handlers.py
@@ -137,7 +137,6 @@
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 @@
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:
--
Repository URL: http://hg.python.org/cpython
More information about the Python-checkins
mailing list