summaryrefslogtreecommitdiff
path: root/wsgitools/scgi
diff options
context:
space:
mode:
authorHelmut Grohne <helmut@subdivi.de>2023-06-17 15:02:40 +0200
committerHelmut Grohne <helmut@subdivi.de>2023-06-17 15:02:40 +0200
commitd5a33a65c3674d6ecfc9515ac81bc8a56ea12a52 (patch)
tree8ddfe5974ad2d0104687559e5a41ad843e79b1cd /wsgitools/scgi
parent27609514f0a95b5bb7b6d6ef8c4029c9cf9e636d (diff)
downloadwsgitools-d5a33a65c3674d6ecfc9515ac81bc8a56ea12a52.tar.gz
scgi.asynchronous: remove unused address argument and attribute
Diffstat (limited to 'wsgitools/scgi')
-rw-r--r--wsgitools/scgi/asynchronous.py7
1 files 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