Message112921
I presume your report is about the fact that the mode is 'a' even though you specified 'a+'. The answer is this block from RotatingFileHandler.__init__ (3.1.2, but presume same for 2.x):
if maxBytes > 0:
mode = 'a' # doesn't make sense otherwise!
I do not understand the comment, but there it is. So
DOC PATCH In 15.6.12.5. RotatingFileHandler, replace
"If mode is not specified, 'a' is used." with
"If mode is not specified or if maxBytes > 0, the mode is 'a'." |
|
Date |
User |
Action |
Args |
2010-08-04 23:28:54 | terry.reedy | set | recipients:
+ terry.reedy, docs@python, fridrik |
2010-08-04 23:28:54 | terry.reedy | set | messageid: <1280964534.58.0.652153352527.issue9512@psf.upfronthosting.co.za> |
2010-08-04 23:28:38 | terry.reedy | link | issue9512 messages |
2010-08-04 23:28:38 | terry.reedy | create | |
|