|
From: Fuzzyman <fuz...@vo...> - 2006-07-11 08:17:46
|
Abhinandan Jain wrote: >OK. Thanks anyway. I do not have control over these non-Python >configuration files - hence the request. > > You could easily 'pre-process' the config files before passing them to ConfigObj. ConfigObj will accept a list of lines as input. So you could read your file in and split it into lines, then iterate over it and join any that end in '\' (not forgetting to remove the escape character). All the best, Fuzzyman http://www.voidspace.org.uk/python/index.shtml >Abhi > > > >>> >>> >>> >>Hello Abhi, >> >>I'm afraid I don't like '\' as continuation syntax, and won't add it >>back to ConfigObj. >> >>The correct way to create multiline values is with triple quote strings : >> >>key = """A multiline value. >>Really.""" >> >>All the best, >> >> >>Fuzzyman >>http://www.voidspace.org.uk/python/index.shtml >> >> >> > > >------------------------------------------------------------------------- >Using Tomcat but need to do more? Need to support web services, security? >Get stuff done quickly with pre-integrated technology to make your job easier >Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo >http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642 >_______________________________________________ >Configobj-develop mailing list >Con...@li... >https://lists.sourceforge.net/lists/listinfo/configobj-develop > > > |