Apply YAPF

This commit is contained in:
Ivan Kravets
2017-01-24 21:54:50 +02:00
parent 92b2782af8
commit a874db38be
5 changed files with 19 additions and 19 deletions

View File

@@ -390,17 +390,17 @@ def lib_stats(json_output):
click.echo("-" * terminal_width)
def _print_lib_item(item):
click.echo((printitemdate_tpl
if "date" in item else printitem_tpl).format(
name=click.style(
item['name'], fg="cyan"),
date=str(
arrow.get(item['date']).humanize()
if "date" in item else ""),
url=click.style(
"http://platformio.org/lib/show/%s/%s" % (item[
'id'], quote(item['name'])),
fg="blue")))
click.echo((
printitemdate_tpl if "date" in item else printitem_tpl
).format(
name=click.style(
item['name'], fg="cyan"),
date=str(
arrow.get(item['date']).humanize() if "date" in item else ""),
url=click.style(
"http://platformio.org/lib/show/%s/%s" % (item['id'],
quote(item['name'])),
fg="blue")))
def _print_tag_item(name):
click.echo(