Use docstring key, not value, as a key.

This commit is contained in:
jesopo 2018-10-03 16:00:53 +01:00
parent 0a5aef09b4
commit 6c1ac52fde

View file

@ -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