From 2eea3fc0321dfb871845049dcc5df655867bcdd5 Mon Sep 17 00:00:00 2001 From: Cedric Brandily Date: Tue, 15 Jul 2014 20:05:55 +0200 Subject: [PATCH] Allow to import _LC, _LE, _LI and _LW functions directly _LC, _LE, _LI, _LW are translation helper functions. This change updates hacking rules to allow importing them directly: from neutron.openstack.common.gettextutils import _LC from neutron.openstack.common.gettextutils import _LE from neutron.openstack.common.gettextutils import _LI from neutron.openstack.common.gettextutils import _LW neutron.policy module has been updated as an example of _LE, _LI and _LW uses. Change-Id: I11cba6bca48a179945385fce69e6f642270f5563 --- tox.ini | 1 + 1 file changed, 1 insertion(+) diff --git a/tox.ini b/tox.ini index 558586565..7911ab6b9 100644 --- a/tox.ini +++ b/tox.ini @@ -64,4 +64,5 @@ builtins = _ exclude = .venv,.git,.tox,dist,doc,*openstack/common*,*lib/python*,*egg,build,tools,.ropeproject,rally-scenarios [hacking] +import_exceptions = neutron.openstack.common.gettextutils local-check-factory = neutron.hacking.checks.factory