]> granicus.if.org Git - python/commit
Allow spaces in section names.
authorFred Drake <fdrake@acm.org>
Wed, 27 Sep 2000 22:43:54 +0000 (22:43 +0000)
committerFred Drake <fdrake@acm.org>
Wed, 27 Sep 2000 22:43:54 +0000 (22:43 +0000)
commit2a37f9f862b81056601584f53a2d5ef88c85d566
tree2d52779b0ce9fbcb2ac6fd16a0c68ada24b6f54a
parent6372fe1e40385d5d37bb938688e7bd5ecd2517be
Allow spaces in section names.
Do not expose the __name__ when reporting the list of options available
for a section since that is for internal use.

This closes SourceForge bug #115357.

Additionally, define InterpolationDepthError and MAX_INTERPOLATION_DEPTH.
The exception is raised by get*() when value interpolation cannot be
completed within the defined recursion limit.  The constant is only
informative; changing it will not affect the allowed depth.

Fix the exit from get() so that None is not returned if the depth is met
or exceeded; either return the value of raise InterpolationDepthError.
Lib/ConfigParser.py