mirror of
https://github.com/frappe/gunicorn.git
synced 2026-01-14 11:09:11 +08:00
Merge pull request #2142 from hramezani/issue_2123
Add some lint errors to .pylintrc disable list (#2123)
This commit is contained in:
commit
fa23cab8a2
@ -21,6 +21,7 @@ disable=
|
|||||||
eval-used,
|
eval-used,
|
||||||
fixme,
|
fixme,
|
||||||
import-error,
|
import-error,
|
||||||
|
import-outside-toplevel,
|
||||||
import-self,
|
import-self,
|
||||||
inconsistent-return-statements,
|
inconsistent-return-statements,
|
||||||
invalid-name,
|
invalid-name,
|
||||||
|
|||||||
@ -242,7 +242,7 @@ class Request(Message):
|
|||||||
if idx > limit > 0:
|
if idx > limit > 0:
|
||||||
raise LimitRequestLine(idx, limit)
|
raise LimitRequestLine(idx, limit)
|
||||||
break
|
break
|
||||||
elif len(data) - 2 > limit > 0:
|
if len(data) - 2 > limit > 0:
|
||||||
raise LimitRequestLine(len(data), limit)
|
raise LimitRequestLine(len(data), limit)
|
||||||
self.get_data(unreader, buf)
|
self.get_data(unreader, buf)
|
||||||
data = buf.getvalue()
|
data = buf.getvalue()
|
||||||
|
|||||||
@ -2,6 +2,7 @@
|
|||||||
#
|
#
|
||||||
# This file is part of gunicorn released under the MIT license.
|
# This file is part of gunicorn released under the MIT license.
|
||||||
# See the NOTICE for more information.
|
# See the NOTICE for more information.
|
||||||
|
# pylint: disable=no-else-continue
|
||||||
|
|
||||||
import os
|
import os
|
||||||
import os.path
|
import os.path
|
||||||
|
|||||||
@ -323,7 +323,7 @@ def write_error(sock, status_int, reason, mesg):
|
|||||||
def import_app(module):
|
def import_app(module):
|
||||||
parts = module.split(":", 1)
|
parts = module.split(":", 1)
|
||||||
if len(parts) == 1:
|
if len(parts) == 1:
|
||||||
module, obj = module, "application"
|
obj = "application"
|
||||||
else:
|
else:
|
||||||
module, obj = parts[0], parts[1]
|
module, obj = parts[0], parts[1]
|
||||||
|
|
||||||
|
|||||||
@ -9,6 +9,7 @@
|
|||||||
# Keepalive connections are put back in the loop waiting for an event.
|
# Keepalive connections are put back in the loop waiting for an event.
|
||||||
# If no event happen after the keep alive timeout, the connection is
|
# If no event happen after the keep alive timeout, the connection is
|
||||||
# closed.
|
# closed.
|
||||||
|
# pylint: disable=no-else-break
|
||||||
|
|
||||||
import concurrent.futures as futures
|
import concurrent.futures as futures
|
||||||
import errno
|
import errno
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user