[Python-checkins] cpython (2.7): Issue #16244: Remove file mode overrides.
vinay.sajip
python-checkins at python.org
Tue Oct 16 11:33:49 CEST 2012
http://hg.python.org/cpython/rev/6fcfe701502b
changeset: 79731:6fcfe701502b
branch: 2.7
user: Vinay Sajip <vinay_sajip at yahoo.co.uk>
date: Tue Oct 16 10:27:00 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
@@ -139,7 +139,6 @@
os.remove(dfn)
os.rename(self.baseFilename, dfn)
#print "%s -> %s" % (self.baseFilename, dfn)
- self.mode = 'w'
self.stream = self._open()
def shouldRollover(self, record):
@@ -354,7 +353,6 @@
for s in self.getFilesToDelete():
os.remove(s)
#print "%s -> %s" % (self.baseFilename, dfn)
- 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