|
From: Michael F. <fuz...@vo...> - 2008-07-16 11:47:32
|
Jeff Balogh wrote:
> ConfigObj raises a parse error when it finds a line with quoted and
> non-quoted words in the same line. The original failure was
> discovered when someone tried to write an email as
>
> email = "name" <na...@ex...>
>
> I'm attaching a patch with a failing test. It's against
> configobj_test.py from the latest configobj.zip, since I didn't find
> the test file in svn.
>
I don't think this is a bug. Quotes are used to 'contain' values, and if
a line starts with double quotes it is fair to assume it is a quoted value.
It would unnecessarily complicate the parser to change this behaviour.
At least you can use:
email = '"name" <na...@ex...>'
I would certainly consider a patch though. :-)
Michael
> Cheers,
> Jeff Balogh
>
> ------------------------------------------------------------------------
>
> -------------------------------------------------------------------------
> This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
> Build the coolest Linux based applications with Moblin SDK & win great prizes
> Grand prize is a trip for two to an Open Source event anywhere in the world
> http://moblin-contest.org/redirect.php?banner_id=100&url=/
> ------------------------------------------------------------------------
>
> _______________________________________________
> Configobj-develop mailing list
> Con...@li...
> https://lists.sourceforge.net/lists/listinfo/configobj-develop
>
--
http://www.ironpythoninaction.com/
http://www.voidspace.org.uk/
http://www.trypython.org/
http://www.ironpython.info/
http://www.theotherdelia.co.uk/
http://www.resolverhacks.net/
|