Be explicit if a project has no repos

Output "None" if a project has no repositories, instead of leaving the
section blank.

Change-Id: I69c03dbeebceaab16fd3c2ec0275b620012b412a
This commit is contained in:
Doug Hellmann 2015-05-23 08:09:39 -07:00
parent 38ed52d784
commit 714aa9df37

@ -55,13 +55,17 @@ def _team_to_rst(name, info):
yield 'Repositories and Tags'
yield '---------------------'
yield ''
for project in info.get('projects', []):
yield '- :repo:`%s`' % project['repo']
tags = project.get('tags', [])
if tags is not []:
yield ''
for tag in tags:
yield ' - :ref:`tag-%s`' % tag['name']
project_repos = info.get('projects', [])
if project_repos:
for project in project_repos:
yield '- :repo:`%s`' % project['repo']
tags = project.get('tags', [])
if tags is not []:
yield ''
for tag in tags:
yield ' - :ref:`tag-%s`' % tag['name']
else:
yield 'None'
yield ''
yield 'Extra ATCs'
yield '-----------'