Fix linting for Pylint 2.0 (#1833)

Closes #1832
This commit is contained in:
7 2018-07-18 09:33:09 -07:00 committed by Berker Peksag
parent 29f0394cdd
commit 7d0787cd1a
3 changed files with 8 additions and 2 deletions

View File

@ -50,3 +50,9 @@ disable=
wrong-import-order,
ungrouped-imports,
unused-argument,
useless-object-inheritance,
useless-import-alias,
comparison-with-callable,
try-except-raise,
# TODO: use dict comprehensions once we drop Python 2.6 support.
consider-using-dict-comprehension,

View File

@ -30,7 +30,7 @@ class WSGIApplication(Application):
from .pasterapp import paste_config
return paste_config(self.cfg, self.cfgurl, self.relpath)
if len(args) < 1:
if not args:
parser.error("No application module specified.")
self.cfg.set("default_proc_name", args[0])

View File

@ -51,7 +51,7 @@ try:
setproctitle("gunicorn: %s" % title)
except ImportError:
def _setproctitle(title):
return
pass
try: