aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/Utils.py11
1 files changed, 3 insertions, 8 deletions
diff --git a/src/Utils.py b/src/Utils.py
index ebf82f82..2f1782bc 100644
--- a/src/Utils.py
+++ b/src/Utils.py
@@ -337,14 +337,9 @@ def parse_docstring(s):
if line:
if line[0] == ":":
- line_split = line.split(": ", 1)
-
- value = None
- if len(line_split) > 1:
- value = line_split[1]
-
- last_item = line_split[0][1:].lower()
- items[last_item] = value
+ key, _, value = line.partition(": ")
+ last_item = value
+ items[value] = value
else:
if last_item:
items[last_item] += " %s" % line