mirror of
https://github.com/frappe/gunicorn.git
synced 2026-01-14 11:09:11 +08:00
fix call
This commit is contained in:
parent
32395a17fc
commit
dc5ec29009
@ -79,13 +79,13 @@ class UnixSocket(BaseSocket):
|
|||||||
|
|
||||||
FAMILY = socket.AF_UNIX
|
FAMILY = socket.AF_UNIX
|
||||||
|
|
||||||
def __init__(self, address, log, fd=None):
|
def __init__(self, address, conf, log, fd=None):
|
||||||
if fd is None:
|
if fd is None:
|
||||||
try:
|
try:
|
||||||
os.remove(address)
|
os.remove(address)
|
||||||
except OSError:
|
except OSError:
|
||||||
pass
|
pass
|
||||||
super(UnixSocket, self).__init__(addr, log, fd=fd)
|
super(UnixSocket, self).__init__(addr, conf, log, fd=fd)
|
||||||
|
|
||||||
def __str__(self):
|
def __str__(self):
|
||||||
return "unix:%s" % self.cfg_addr
|
return "unix:%s" % self.cfg_addr
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user