aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEugene Triguba <eugenetriguba@gmail.com>2020-01-19 13:05:52 -0600
committerEugene Triguba <eugenetriguba@gmail.com>2020-01-19 13:05:52 -0600
commit699c0e66d138fb70ac50e03a012522480ed8d1f0 (patch)
tree1c16414e07914b7cb4ec520c9d4753ec913bd47c
parentAdd CI pipeline details to contributing guidelines (diff)
downloadconfig-file-699c0e66d138fb70ac50e03a012522480ed8d1f0.zip
Add TODO to ini_parser to be able to retrieve sections
-rw-r--r--config_file/parsers/ini_parser.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/config_file/parsers/ini_parser.py b/config_file/parsers/ini_parser.py
index 3c8f12f..3e93e4c 100644
--- a/config_file/parsers/ini_parser.py
+++ b/config_file/parsers/ini_parser.py
@@ -33,6 +33,7 @@ class IniParser(BaseParser):
:raises ParsingError: if the specified `section.key` is not found, in an
invalid format, or if we are unable to coerce the return value to value_type.
"""
+ # TODO: Support for retrieving entire sections instead of just key/values
section, key = split_on_dot(section_key, only_last_dot=True)
try: