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:
parent
04c772a4cd
commit
90cc4d087f
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user