|
From: Cornell W. <co...@la...> - 2012-09-07 14:05:34
|
I've been starting to use ConfigObj4 and validate, it's a nice package.
I think there is an error in the get_extra_values example in configobj.html.
# this code gets the extra values themselves
the_section = cfg
for section in sections:
the_section = cfg[section]
The last line should be:
the_section=the_section[section]
Without that change, I get a key error on an extra value in a section
nested two deep.
--
Cornell Wright
HPC-5 - High Performance System Integration
Los Alamos National Laboratory
505-665-3109 - Office
505-664-4084 - Pager (during work hours)
505-695-4904 - Mobile (outside of work hours)
co...@la... - eMail
|