Fix pylint warning with eventlet > 0.22.0

When eventlet was bumped up to 0.24.1 in upper-constraints [1]
it started generating a pylint warning, since neutron has
support for older versions such as 0.22.0 that take a different
number of arguments. Just silence the warning.

[1] https://review.openstack.org/#/c/589382/

This warning can also happen on 0.20 packages with backport fixes

Change-Id: I169ecb6f33b670c5469919214a32645cd9eda206
Closes-Bug: #1791178
(cherry picked from commit db7e19d2ba)
This commit is contained in:
Brian Haley 2018-09-12 10:54:47 -06:00 committed by Bernard Cafarelli
parent 91426b3ae8
commit 1c1bb73202
No known key found for this signature in database
GPG Key ID: D148244A3C2462BD

View File

@ -405,6 +405,10 @@ class UnixDomainHttpProtocol(eventlet.wsgi.HttpProtocol):
if not client_address:
client_address = ('<local>', 0)
# base class is old-style, so super does not work properly
# NOTE: eventlet 0.22 or later changes the number of args to 2.
# If we install eventlet 0.22 or later into a venv for pylint,
# pylint complains this. Let's skip it. (bug 1791178)
# pylint: disable=too-many-function-args
eventlet.wsgi.HttpProtocol.__init__(
self, request, client_address, server)
else: