From 4d845f2ae4f5b6c1d4be932c72df4cac071abb6c Mon Sep 17 00:00:00 2001 From: benoitc Date: Tue, 31 May 2016 15:48:39 +0200 Subject: [PATCH] fix pep8 warnings --- gunicorn/util.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/gunicorn/util.py b/gunicorn/util.py index 6a5e8b72..64c5ff57 100644 --- a/gunicorn/util.py +++ b/gunicorn/util.py @@ -253,6 +253,7 @@ def parse_address(netloc, default_port=8000): port = default_port return (host, port) + def get_maxfd(): maxfd = resource.getrlimit(resource.RLIMIT_NOFILE)[1] if (maxfd == resource.RLIM_INFINITY): @@ -270,6 +271,7 @@ def set_non_blocking(fd): flags = fcntl.fcntl(fd, fcntl.F_GETFL) | os.O_NONBLOCK fcntl.fcntl(fd, fcntl.F_SETFL, flags) + def close(sock): try: sock.close()