andy,

try putting a commented-out [HALUI] section in a file that doesn't
otherwise have one..

#[HALUI]
#oops = true

I think this reproduces gene's reported error.

I made this educated guess because 'copysection' doesn't anchor its
search for the section to the beginning of a line

    def copysection(block):
        #Just makes a straight copy of blocks that don't need any work
            regex = "\[%s\](.+?)(?:\n\[|$)" % block

while all_sections does:

    all_sections = re.findall("^\[(.+)\]", inistring, re.MULTILINE)

The code in copysection may also misbehave if there's a [ inside a
value:

    THINGS_I_LIKE = [HALUI]

Jeff

------------------------------------------------------------------------------
What NetFlow Analyzer can do for you? Monitors network bandwidth and traffic
patterns at an interface-level. Reveals which users, apps, and protocols are 
consuming the most bandwidth. Provides multi-vendor support for NetFlow, 
J-Flow, sFlow and other flows. Make informed decisions using capacity planning
reports.http://sdm.link/zohodev2dev
_______________________________________________
Emc-developers mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/emc-developers

Reply via email to