From 90cc4d087ff2252fc7252fc4ae2fea47a7448284 Mon Sep 17 00:00:00 2001 From: Brian Haley Date: Mon, 29 Oct 2018 15:27:50 -0400 Subject: [PATCH] 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 --- neutron/__init__.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/neutron/__init__.py b/neutron/__init__.py index 6b44517b7c4..7e68d596bf7 100644 --- a/neutron/__init__.py +++ b/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