Skip to content

Commit

Permalink
lint: stop linting against tornado<5
Browse files Browse the repository at this point in the history
  • Loading branch information
pajod committed Jul 31, 2024
1 parent 63d0010 commit 03b8356
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions gunicorn/workers/gtornado.py
Original file line number Diff line number Diff line change
Expand Up @@ -98,9 +98,12 @@ def run(self):
for callback in self.callbacks:
callback.start()
else:
PeriodicCallback(self.watchdog, 1000, io_loop=self.ioloop).start()
PeriodicCallback(self.heartbeat, 1000, io_loop=self.ioloop).start()

PeriodicCallback( # pylint: disable=unexpected-keyword-arg
self.watchdog, 1000, io_loop=self.ioloop
).start()
PeriodicCallback( # pylint: disable=unexpected-keyword-arg
self.heartbeat, 1000, io_loop=self.ioloop
).start()
# Assume the app is a WSGI callable if its not an
# instance of tornado.web.Application or is an
# instance of tornado.wsgi.WSGIApplication
Expand Down Expand Up @@ -133,7 +136,7 @@ def finish(other):

class _HTTPServer(tornado.httpserver.HTTPServer):

def on_close(instance, server_conn):
def on_close(instance, server_conn): # pylint: disable=arguments-renamed
self.handle_request()
super(_HTTPServer, instance).on_close(server_conn)

Expand Down

0 comments on commit 03b8356

Please sign in to comment.