Skip to content

Commit

Permalink
Merge pull request #2142 from hramezani/issue_2123
Browse files Browse the repository at this point in the history
Add some lint errors to .pylintrc disable list (#2123)
  • Loading branch information
benoitc committed Oct 27, 2019
2 parents 235f06c + e7890d8 commit fa23cab
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 2 deletions.
1 change: 1 addition & 0 deletions .pylintrc
Expand Up @@ -21,6 +21,7 @@ disable=
eval-used,
fixme,
import-error,
import-outside-toplevel,
import-self,
inconsistent-return-statements,
invalid-name,
Expand Down
2 changes: 1 addition & 1 deletion gunicorn/http/message.py
Expand Up @@ -242,7 +242,7 @@ def read_line(self, unreader, buf, limit=0):
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()
Expand Down
1 change: 1 addition & 0 deletions gunicorn/reloader.py
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion gunicorn/util.py
Expand Up @@ -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]

Expand Down
1 change: 1 addition & 0 deletions gunicorn/workers/gthread.py
Expand Up @@ -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
Expand Down

0 comments on commit fa23cab

Please sign in to comment.