Skip to content

Commit

Permalink
docs: fix get_extra_values example
Browse files Browse the repository at this point in the history
  • Loading branch information
hanschen committed Mar 23, 2018
1 parent e36c7b4 commit 7067d06
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions docs/configobj.rst
Original file line number Diff line number Diff line change
Expand Up @@ -2239,12 +2239,12 @@ Here is an example of how you could present this information to the user.
# this code gets the extra values themselves
the_section = cfg
for section in sections:
the_section = cfg[section]
the_section = the_section[section]
# the_value may be a section or a value
the_value = the_section[name]
section_or_value = 'value
section_or_value = 'value'
if isinstance(the_value, dict):
# Sections are subclasses of dict
section_or_value = 'section'
Expand Down

0 comments on commit 7067d06

Please sign in to comment.