From a5dda4098c7a80f139b5e229d117000d95c7544b Mon Sep 17 00:00:00 2001 From: Tim Van Baak Date: Tue, 28 Jan 2020 13:29:32 -0800 Subject: [PATCH] Linting pass --- amanuensis/cli/user.py | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/amanuensis/cli/user.py b/amanuensis/cli/user.py index 689493c..78656ab 100644 --- a/amanuensis/cli/user.py +++ b/amanuensis/cli/user.py @@ -1,6 +1,5 @@ # Standard imports import getpass -import json import os import shutil @@ -19,7 +18,7 @@ def command_create(args): Create a user """ # Module imports - from amanuensis.config import logger, json_ro + from amanuensis.config import logger from amanuensis.user import ( UserModel, valid_username, valid_email, create_user) @@ -104,8 +103,7 @@ def command_config(args): Interact with a user's config """ # Module imports - from amanuensis.config import logger, json_ro, json_rw - from amanuensis.user import UserModel + from amanuensis.config import logger, json_rw # Verify arguments if args.get and args.set: @@ -134,7 +132,6 @@ def command_passwd(args): """ # Module imports from amanuensis.config import logger - from amanuensis.user import UserModel # Verify arguments pw = args.password or getpass.getpass("Password: ") @@ -143,4 +140,5 @@ def command_passwd(args): args.user.set_password(pw) # Output + logger.info('Updated password for "{}"'.format(args.user.username)) return 0