def issue_line(issue):
 template = '#{number} {tags}{title}'
 tags = issue_tags(issue)
 params = {'title': issue['title'].capitalize().rstrip('.'), 'number': issue['number'], 'tags': (' '.join(('[{}]'.format(tag) for tag in tags)) + (' ' if tags else ''))}
 return template.format(**params)

def issue_line ( issue ) : template = '#{number} {tags}{title}' tags = issue_tags ( issue ) params = { 'title' : issue [ 'title' ] . capitalize ( ) . rstrip ( '.' ) , 'number' : issue [ 'number' ] , 'tags' : ( ' ' . join ( ( '[{}]' . format ( tag ) for tag in tags ) ) + ( ' ' if tags else '' ) ) } return template . format ( ** params )
returns log line for given issue .