aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorGravatar jesopo2018-10-03 16:00:53 +0100
committerGravatar jesopo2018-10-03 16:00:53 +0100
commit6c1ac52fde8f60462be367699a4facb85a00241a (patch)
tree619fa919c2fb7d1fbe9c68552c6969e3a8f83ad6 /src
parentFix start.py not giving the right arguments to database.servers.add (diff)
signature
Use docstring key, not value, as a key.
Diffstat (limited to 'src')
-rw-r--r--src/utils/__init__.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/utils/__init__.py b/src/utils/__init__.py
index d568e517..54430256 100644
--- a/src/utils/__init__.py
+++ b/src/utils/__init__.py
@@ -160,9 +160,9 @@ def parse_docstring(s):
if line:
if line[0] == ":":
- key, _, value = line.partition(": ")
- last_item = value
- items[value] = value
+ key, _, value = line[1:].partition(": ")
+ last_item = key
+ items[key] = value
else:
if last_item:
items[last_item] += " %s" % line