Fix incorrect usage of '# flake8: noqa'

Correct usage is '# noqa' at end of line, otherwise syntax
checking is disabled for the entire file.  Had to fix an
incorrect pylint directive uncovered by the change.

Trivialfix

Change-Id: If210b7c9e9d2c5fc9773c0c6f2dc07cfd52a5a51
This commit is contained in:
Brian Haley 2018-10-29 15:27:50 -04:00
parent 04c772a4cd
commit 90cc4d087f
1 changed files with 3 additions and 3 deletions

View File

@ -20,12 +20,12 @@ import six
if six.PY2:
gettext.install('neutron', unicode=1) # pylint: disable=unexpected-keyword-arg
# pylint: disable=unexpected-keyword-arg
gettext.install('neutron', unicode=1)
else:
gettext.install('neutron')
# flake8: noqa
six.moves.builtins.__dict__['_'] = removals.remove(
message='Builtin _ translation function is deprecated in OpenStack; '
'use the function from _i18n module for your project.')(_)
'use the function from _i18n module for your project.')(_) # noqa