Browse Source

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
changes/16/614016/1
Brian Haley 3 years ago
parent
commit
90cc4d087f
  1. 6
      neutron/__init__.py

6
neutron/__init__.py

@ -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…
Cancel
Save