From d5a33a65c3674d6ecfc9515ac81bc8a56ea12a52 Mon Sep 17 00:00:00 2001 From: Helmut Grohne Date: Sat, 17 Jun 2023 15:02:40 +0200 Subject: scgi.asynchronous: remove unused address argument and attribute --- wsgitools/scgi/asynchronous.py | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/wsgitools/scgi/asynchronous.py b/wsgitools/scgi/asynchronous.py index 15594c9..8c44ba2 100644 --- a/wsgitools/scgi/asynchronous.py +++ b/wsgitools/scgi/asynchronous.py @@ -26,12 +26,11 @@ class SCGIConnection(asyncore.dispatcher): RESP = 3*4 | 2 # sending response, end state RESPH = 4*4 | 2 # buffered response headers, sending headers only, to TRANS TRANS = 5*4 | 2 # transferring using FileWrapper, end state - def __init__(self, server, connection, addr, maxrequestsize=65536, + def __init__(self, server, connection, maxrequestsize=65536, maxpostsize=8<<20, blocksize=4096, config={}): asyncore.dispatcher.__init__(self, connection) self.server = server # WSGISCGIServer instance - self.addr = addr # scgi client address self.maxrequestsize = maxrequestsize self.maxpostsize = maxpostsize self.blocksize = blocksize @@ -267,8 +266,8 @@ class SCGIServer(asyncore.dispatcher): raise else: if ret is not None: - conn, addr = ret - SCGIConnection(self, conn, addr, **self.conf) + conn, _ = ret + SCGIConnection(self, conn, **self.conf) def run(self): """Runs the server. It will not return and you can invoke -- cgit v1.2.3