Attached are a config file parser that i'm working on, and a example config file. Basically, what my problem is is in write_config, it should search through the file, and replace the lines with whatever the modified version is, it is also designed to ignore comments. To see my problem (which is hard to describe) please first look at the config file, and then run config-parse.py then look at the config file again. One of two things should happen: nothing, or something weird should happen on the last line. -------------- next part -------------- A non-text attachment was scrubbed... Name: config-parse.py Type: text/x-python Size: 1382 bytes Desc: not available URL: <http://mail.python.org/pipermail/python-list/attachments/20110126/4b054f32/attachment.py> -------------- next part -------------- An embedded and charset-unspecified text was scrubbed... Name: net-responsibility.conf2 URL: <http://mail.python.org/pipermail/python-list/attachments/20110126/4b054f32/attachment.ksh>