mirror of
https://github.com/frappe/gunicorn.git
synced 2026-01-14 11:09:11 +08:00
remove useless code
This commit is contained in:
parent
b810a1d1a9
commit
b7cbb59bbc
@ -269,11 +269,6 @@ def set_non_blocking(fd):
|
||||
flags = fcntl.fcntl(fd, fcntl.F_GETFL) | os.O_NONBLOCK
|
||||
fcntl.fcntl(fd, fcntl.F_SETFL, flags)
|
||||
|
||||
def fd_(fd):
|
||||
if hasattr(fd, "fileno"):
|
||||
return int(fd.fileno())
|
||||
return fd
|
||||
|
||||
def close(sock):
|
||||
try:
|
||||
sock.close()
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user