Fix lint errors (#2123)

This commit is contained in:
Hasan Ramezani 2019-10-25 11:09:53 +02:00
parent 5d1d3af7f5
commit e7890d8d1b
No known key found for this signature in database
GPG Key ID: D0E2D7CE14B68267
4 changed files with 4 additions and 2 deletions

View File

@ -242,7 +242,7 @@ class Request(Message):
if idx > limit > 0:
raise LimitRequestLine(idx, limit)
break
elif len(data) - 2 > limit > 0:
if len(data) - 2 > limit > 0:
raise LimitRequestLine(len(data), limit)
self.get_data(unreader, buf)
data = buf.getvalue()

View File

@ -2,6 +2,7 @@
#
# This file is part of gunicorn released under the MIT license.
# See the NOTICE for more information.
# pylint: disable=no-else-continue
import os
import os.path

View File

@ -323,7 +323,7 @@ def write_error(sock, status_int, reason, mesg):
def import_app(module):
parts = module.split(":", 1)
if len(parts) == 1:
module, obj = module, "application"
obj = "application"
else:
module, obj = parts[0], parts[1]

View File

@ -9,6 +9,7 @@
# Keepalive connections are put back in the loop waiting for an event.
# If no event happen after the keep alive timeout, the connection is
# closed.
# pylint: disable=no-else-break
import concurrent.futures as futures
import errno