aboutsummaryrefslogtreecommitdiffstats
path: root/config_file/utils.py
diff options
context:
space:
mode:
authorEugene Triguba <eugenetriguba@gmail.com>2020-08-01 08:57:17 -0500
committerEugene Triguba <eugenetriguba@gmail.com>2020-08-01 08:57:17 -0500
commitba655e72f74bc488cb8e5988766fef8f5dd45bcc (patch)
treef967eb203b0a6e389022c5383a7eb23414059051 /config_file/utils.py
parentAdd name to security workflow (diff)
parentFix wording of docstring in missing dependency error (diff)
downloadconfig-file-ba655e72f74bc488cb8e5988766fef8f5dd45bcc.zip
Merge branch 'dev' into dev
Diffstat (limited to 'config_file/utils.py')
-rw-r--r--config_file/utils.py8
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)