From 1df45d590196a7d81a5bc4dfdd83d46c463b2891 Mon Sep 17 00:00:00 2001 From: meow Date: Tue, 31 Dec 2019 23:19:20 +0500 Subject: [PATCH] Little bit of refactoring --- setup.py | 1 - uncloud_cli/commands/helper.py | 2 +- uncloud_cli/commands/network.py | 5 ++--- 3 files changed, 3 insertions(+), 5 deletions(-) diff --git a/setup.py b/setup.py index ee40e77..1317f84 100644 --- a/setup.py +++ b/setup.py @@ -20,7 +20,6 @@ setup(name='uncloud_cli', packages=find_packages(), install_requires=[ 'requests', - 'python-decouple', 'pyotp', 'click' ], diff --git a/uncloud_cli/commands/helper.py b/uncloud_cli/commands/helper.py index c7661c9..14ac530 100755 --- a/uncloud_cli/commands/helper.py +++ b/uncloud_cli/commands/helper.py @@ -26,7 +26,7 @@ def make_request(*args, data=None, request_method=requests.post): print('Error occurred while getting output from api server.') -def get_token(ctx, param, value): +def get_token(_, param, value): if value is not None: try: token = TOTP(value).now() diff --git a/uncloud_cli/commands/network.py b/uncloud_cli/commands/network.py index 978ec75..e81d2bf 100644 --- a/uncloud_cli/commands/network.py +++ b/uncloud_cli/commands/network.py @@ -1,7 +1,6 @@ -from uncloud_cli.commands.helper import add_otp_options, make_request - import click -import requests + +from uncloud_cli.commands.helper import add_otp_options, make_request @click.group()