Commits

Anonymous committed cbaf575

Fixed some use of ensure_port_cleanup(); not even sure I should use that function at all

Comments (0)

Files changed (1)

paste/script/flup_server.py

     else:
         assert host is not None and port is not None
         sock = (host, port)
-    ensure_port_cleanup(sock)
+    ensure_port_cleanup([sock])
     s = flup.server.fcgi_fork.WSGIServer(
         wsgi_app,
         bindAddress=sock,
                     allowedServers='127.0.0.1'):
     import flup.server.scgi
     addr = (host, int(port))
-    ensure_port_cleanup(addr)
+    ensure_port_cleanup([addr])
     s = flup.server.scgi.WSGIServer(
         wsgi_app,
         scriptName=scriptName,
                   allowedServers='127.0.0.1'):
     import flup.server.scgi_fork
     addr = (host, int(port))
-    ensure_port_cleanup(addr)
+    ensure_port_cleanup([addr])
     s = flup.server.scgi_fork.WSGIServer(
         wsgi_app,
         scriptName=scriptName,