Linting pass

This commit is contained in:
Tim Van Baak 2020-01-28 13:29:32 -08:00
parent cdfe3037b8
commit a5dda4098c
1 changed files with 3 additions and 5 deletions

View File

@ -1,6 +1,5 @@
# Standard imports # Standard imports
import getpass import getpass
import json
import os import os
import shutil import shutil
@ -19,7 +18,7 @@ def command_create(args):
Create a user Create a user
""" """
# Module imports # Module imports
from amanuensis.config import logger, json_ro from amanuensis.config import logger
from amanuensis.user import ( from amanuensis.user import (
UserModel, valid_username, valid_email, create_user) UserModel, valid_username, valid_email, create_user)
@ -104,8 +103,7 @@ def command_config(args):
Interact with a user's config Interact with a user's config
""" """
# Module imports # Module imports
from amanuensis.config import logger, json_ro, json_rw from amanuensis.config import logger, json_rw
from amanuensis.user import UserModel
# Verify arguments # Verify arguments
if args.get and args.set: if args.get and args.set:
@ -134,7 +132,6 @@ def command_passwd(args):
""" """
# Module imports # Module imports
from amanuensis.config import logger from amanuensis.config import logger
from amanuensis.user import UserModel
# Verify arguments # Verify arguments
pw = args.password or getpass.getpass("Password: ") pw = args.password or getpass.getpass("Password: ")
@ -143,4 +140,5 @@ def command_passwd(args):
args.user.set_password(pw) args.user.set_password(pw)
# Output # Output
logger.info('Updated password for "{}"'.format(args.user.username))
return 0 return 0