i2p: Minor flake8 and yapf fixes

Signed-off-by: Sunil Mohan Adapa <sunil@medhas.org>
This commit is contained in:
Sunil Mohan Adapa committed 2019-04-29 16:51:54 -07:00
1 parent dca91da571
commit 97ed7fe144
6 files changed
+57 -35

No files matched your search

+4 -7
View File
@@ -43,7 +43,8 @@ def parse_arguments():
'add-favorite', help='Add an eepsite to the list of favorites')
subparser.add_argument('--name', help='Name of the entry', required=True)
subparser.add_argument('--url', help='URL of the entry', required=True)
subparser.add_argument('--description', help='short description', required=False)
subparser.add_argument('--description', help='Short description',
required=False)
subparser.add_argument('--icon', help='URL to icon', required=False)
subparser = subparsers.add_parser('set-tunnel-property',
@@ -92,12 +93,8 @@ def subcommand_add_favorite(arguments):
url = arguments.url
editor = RouterEditor()
editor.read_conf().add_favorite(
arguments.name,
url,
arguments.description,
arguments.icon
).write_conf()
editor.read_conf().add_favorite(arguments.name, url, arguments.description,
arguments.icon).write_conf()
print('Added {} to favorites'.format(url))