|
From: Jason U. <ent...@gm...> - 2013-09-10 21:57:12
|
I suppose it'd be best to make this configurable, defaulting to "#". Ideally, set the comment chars before loading the file. On Tue, Sep 10, 2013 at 3:47 AM, Nikita A Menkovich <men...@gm...>wrote: > I created a small patch that add ";" to list of comment chars > > But this is _hack_ i think, maybe there will be better solution > > > On 10 September 2013 14:37, Nikita A Menkovich <men...@gm...>wrote: > >> Hi all! >> >> A have ini file used by php application and parse_ini_file function uses >> ";" for comments. >> >> I need to validate a config file and prefer to use python and configobj >> for this, but in configobj "#" used for comments. >> >> Can I use other symbols? Or how can I extend configobj to use ";" for >> comments? >> >> -- >> Nikita A Menkovich >> http://libc6.org/ >> JID: men...@gm... >> >> >> >> > > > -- > Nikita A Menkovich > http://libc6.org/ > JID: men...@gm... > > > > > > ------------------------------------------------------------------------------ > How ServiceNow helps IT people transform IT departments: > 1. Consolidate legacy IT systems to a single system of record for IT > 2. Standardize and globalize service processes across IT > 3. Implement zero-touch automation to replace manual, redundant tasks > http://pubads.g.doubleclick.net/gampad/clk?id=51271111&iu=/4140/ostg.clktrk > _______________________________________________ > Configobj-develop mailing list > Con...@li... > https://lists.sourceforge.net/lists/listinfo/configobj-develop > > -- ~ Jason Unger |