Skip to content

Commit

Permalink
Use the main generator doc by default.
Browse files Browse the repository at this point in the history
  • Loading branch information
saimn committed Jan 8, 2018
1 parent 72c0aed commit ff7ace3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion doit/loader.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ def flat_generator(gen, gen_doc=''):
if inspect.isgenerator(item):
item_doc = item.gi_code.co_consts[0]
for value, value_doc in flat_generator(item, item_doc):
yield value, value_doc
yield value, value_doc or gen_doc
else:
yield item, gen_doc

Expand Down

0 comments on commit ff7ace3

Please sign in to comment.