"from keystone.openstack.common.gettextutils import _" is used in keystone/openstack/common/policy.py too, except that other same code line such as:"from nova.openstack.common.gettextutils import _", "from ceilometer.openstack.common.gettextutils import _" and so on, exist in other components's code a lot. They are legal code, it shouldn't be recognized as an error by pep8 and flake8.
"from keystone. openstack. common. gettextutils import _" is used in keystone/ openstack/ common/ policy. py too, except that other same code line such as:"from nova.openstack. common. gettextutils import _", "from ceilometer. openstack. common. gettextutils import _" and so on, exist in other components's code a lot. They are legal code, it shouldn't be recognized as an error by pep8 and flake8.