|
From: Michael F. <fuz...@vo...> - 2007-01-22 23:43:11
|
Salazar, Mark wrote: > > I observed the files created by ConfigObj.write() were missing the > newline character on the last line. Sure enough examination of the > code reveals something like: > > === > > Output = (expressionReturningANewlineChar).join(out) > > . > > . > > . > > Outfile.write(Output) > > === > > which will leave off the final newline. Am I missing something? > Ah.... I *thought* there was code in there which tracked whether the original was terminated with a newline and adding one if necessary. However as I can't see that code I must have been hallucinating. :-) I guess that's a bug and should be fixed sometime. Fuzzyman http://www.voidspace.org.uk/python/articles.shtml > ------------------------------------------------------------------------ > > ------------------------------------------------------------------------- > Take Surveys. Earn Cash. Influence the Future of IT > Join SourceForge.net's Techsay panel and you'll get the chance to share your > opinions on IT & business topics through brief surveys - and earn cash > http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV > ------------------------------------------------------------------------ > > _______________________________________________ > Configobj-develop mailing list > Con...@li... > https://lists.sourceforge.net/lists/listinfo/configobj-develop > |