]> review.fuel-infra Code Review - openstack-build/neutron-build.git/commit
Allow to import _LC, _LE, _LI and _LW functions directly
authorCedric Brandily <zzelle@gmail.com>
Tue, 15 Jul 2014 18:05:55 +0000 (20:05 +0200)
committerCedric Brandily <zzelle@gmail.com>
Thu, 17 Jul 2014 14:56:19 +0000 (14:56 +0000)
commita81ec000346bad87ba8f8eee53a9d73cc437888c
treee251a653a85207e0dcd182a961c682b4cb9e1896
parentf154510a7c935e2b06b4ab25340084e4304cfcf7
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
neutron/policy.py
tox.ini