Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

docs: fix get_extra_values example #166

Merged
merged 1 commit into from
Mar 23, 2018
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
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