diff --git a/gunicorn/util.py b/gunicorn/util.py index 07db3dba..9f6b79c9 100644 --- a/gunicorn/util.py +++ b/gunicorn/util.py @@ -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()