systematic use of from __future__ import absolute_import. it eliminates import NAME confusion with very common names (eg. import ldap is very ambiguous: can be a ldap module from realms-wiki, a ldap module from flask-ldap-login, or python-ldap module.

also cleant up a bit the import towards PEP8: builtin modules first, then 3rd party python packages, then local packages
This commit is contained in:
stef 2016-08-20 00:48:00 +02:00 committed by Stephane Martin
parent 2919be6b87
commit 2731531768
38 changed files with 156 additions and 42 deletions

View file

@ -1,8 +1,11 @@
from __future__ import absolute_import
import click
from realms.lib.util import random_string
from realms.modules.auth.local.models import User
from realms.lib.util import green, red, yellow
from realms import cli_group
from .models import User
from ....lib.util import random_string
from ....lib.util import green, red, yellow
from .... import cli_group
@cli_group(short_help="Auth Module")