d1d60b93bc
This patch adds the pep8-dev tox target for running pep8 locally as per [1]. In addition it updates the pylint version to work with python 3.x and addresses some pylint errors in the code. [1] https://etherpad.openstack.org/p/neutron-sibling-setup Change-Id: I7bd4d8e75601a7291692d6256925f46fb4fa5464
26 lines
801 B
Python
26 lines
801 B
Python
# Copyright 2011 OpenStack Foundation
|
|
# All Rights Reserved.
|
|
#
|
|
# Licensed under the Apache License, Version 2.0 (the "License"); you may
|
|
# not use this file except in compliance with the License. You may obtain
|
|
# a copy of the License at
|
|
#
|
|
# http://www.apache.org/licenses/LICENSE-2.0
|
|
#
|
|
# Unless required by applicable law or agreed to in writing, software
|
|
# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
|
|
# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
|
|
# License for the specific language governing permissions and limitations
|
|
# under the License.
|
|
|
|
import gettext
|
|
|
|
import six
|
|
|
|
|
|
if six.PY2:
|
|
# pylint: disable=unexpected-keyword-arg
|
|
gettext.install('neutron', unicode=1)
|
|
else:
|
|
gettext.install('neutron')
|