Remove notes about new-style classes
On py3, everything's new-style! Change-Id: I1b9d2a3369279a56962b800c27edd9f6127ef0d4
This commit is contained in:
1 changed files with 3 additions and 6 deletions
@@ -31,8 +31,7 @@ class SwiftHttpProtocol(wsgi.HttpProtocol):
# See https://github.com/eventlet/eventlet/pull/590
self.pre_shutdown_bugfix_eventlet = not getattr(
websocket.WebSocketWSGI, '_WSGI_APP_ALWAYS_IDLE', None)
# Note this is not a new-style class, so super() won't work
wsgi.HttpProtocol.__init__(self, *args, **kwargs)
super().__init__(*args, **kwargs)
def log_request(self, *a):
"""
@@ -213,16 +212,14 @@ class SwiftHttpProtocol(wsgi.HttpProtocol):
return environ
def _read_request_line(self):
# Note this is not a new-style class, so super() won't work
got = wsgi.HttpProtocol._read_request_line(self)
got = super()._read_request_line()
# See https://github.com/eventlet/eventlet/pull/590
if self.pre_shutdown_bugfix_eventlet:
self.conn_state[2] = wsgi.STATE_REQUEST
return got
def handle_one_request(self):
# Note this is not a new-style class, so super() won't work
got = wsgi.HttpProtocol.handle_one_request(self)
got = super().handle_one_request()
# See https://github.com/eventlet/eventlet/pull/590
if self.pre_shutdown_bugfix_eventlet:
if self.conn_state[2] != wsgi.STATE_CLOSE:
Reference in New Issue
Block a user
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.