Use docstring key, not value, as a key.
This commit is contained in:
parent
0a5aef09b4
commit
6c1ac52fde
1 changed files with 3 additions and 3 deletions
|
@ -160,9 +160,9 @@ def parse_docstring(s):
|
||||||
|
|
||||||
if line:
|
if line:
|
||||||
if line[0] == ":":
|
if line[0] == ":":
|
||||||
key, _, value = line.partition(": ")
|
key, _, value = line[1:].partition(": ")
|
||||||
last_item = value
|
last_item = key
|
||||||
items[value] = value
|
items[key] = value
|
||||||
else:
|
else:
|
||||||
if last_item:
|
if last_item:
|
||||||
items[last_item] += " %s" % line
|
items[last_item] += " %s" % line
|
||||||
|
|
Loading…
Reference in a new issue