diff options
| author | Eugene Triguba <eugenetriguba@gmail.com> | 2020-07-29 23:53:15 -0500 |
|---|---|---|
| committer | Eugene Triguba <eugenetriguba@gmail.com> | 2020-07-29 23:53:15 -0500 |
| commit | 3c1ebfaf0db4a29cc8ee9ba742c6d8925dc79cff (patch) | |
| tree | 8cc6627d9d4c74bd804f452378346bf904efa31c /config_file/utils.py | |
| parent | Revise `get` section for readme docs (diff) | |
| download | config-file-3c1ebfaf0db4a29cc8ee9ba742c6d8925dc79cff.zip | |
Allow string lists and dicts to be auto parsed
Diffstat (limited to 'config_file/utils.py')
| -rw-r--r-- | config_file/utils.py | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/config_file/utils.py b/config_file/utils.py index de31c69..a75968c 100644 --- a/config_file/utils.py +++ b/config_file/utils.py @@ -6,10 +6,12 @@ def split_on_dot(line: Union[str, Path], only_last_dot=False) -> List[str]: """ Split a string on the dot character (.). - :param line: The line ot split on. - :param only_last_dot: Only split on the last occurrence of the dot. + Args: + line: The line ot split on. + only_last_dot: Only split on the last occurrence of the dot. - :raises ValueError: if the line does not have a dot. + Raises: + ValueError: if the line does not have a dot. """ if isinstance(line, Path): line = str(line) |