Fix i18n imports
Import the symbols needed from _i18n directly, relying on the import exception to avoid pep8 errors. Remove the imports that aren't being used. Change-Id: I8baef5ab859f005ff515b97adb9952f2ef1003e1
This commit is contained in:
parent
0e744e4891
commit
4b198cc889
@ -21,13 +21,11 @@ import re
|
||||
import six
|
||||
|
||||
from oslo_policy import _checks
|
||||
from oslo_policy import _i18n
|
||||
from oslo_policy._i18n import _LE
|
||||
|
||||
|
||||
LOG = logging.getLogger(__name__)
|
||||
|
||||
_, _LE, _LI = _i18n._, _i18n._LE, _i18n._LI
|
||||
|
||||
|
||||
def reducer(*tokens):
|
||||
"""Decorator for reduction methods.
|
||||
|
@ -210,11 +210,10 @@ from oslo_serialization import jsonutils
|
||||
import six
|
||||
|
||||
from oslo_policy import _checks
|
||||
from oslo_policy import _i18n
|
||||
from oslo_policy._i18n import _
|
||||
from oslo_policy import _parser
|
||||
from oslo_policy.openstack.common import fileutils
|
||||
|
||||
_, _LI = _i18n._, _i18n._LI
|
||||
|
||||
_opts = [
|
||||
cfg.StrOpt('policy_file',
|
||||
|
Loading…
x
Reference in New Issue
Block a user