diff options
| author | Eugene Triguba <eugenetriguba@gmail.com> | 2020-08-01 08:57:17 -0500 |
|---|---|---|
| committer | Eugene Triguba <eugenetriguba@gmail.com> | 2020-08-01 08:57:17 -0500 |
| commit | ba655e72f74bc488cb8e5988766fef8f5dd45bcc (patch) | |
| tree | f967eb203b0a6e389022c5383a7eb23414059051 /config_file/utils.py | |
| parent | Add name to security workflow (diff) | |
| parent | Fix wording of docstring in missing dependency error (diff) | |
| download | config-file-ba655e72f74bc488cb8e5988766fef8f5dd45bcc.zip | |
Merge branch 'dev' into dev
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) |