From cf401982fdd3820e620ec0eb2a85bb5a9fee3216 Mon Sep 17 00:00:00 2001 From: tomjaguarpaw Date: Tue, 1 Aug 2017 11:51:19 +0100 Subject: [PATCH] Remove redundant "is not None" in gunicorn/http/wsgi.py (#1556) --- gunicorn/http/wsgi.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gunicorn/http/wsgi.py b/gunicorn/http/wsgi.py index 101ef9c2..63ff3d33 100644 --- a/gunicorn/http/wsgi.py +++ b/gunicorn/http/wsgi.py @@ -179,7 +179,7 @@ def create(req, sock, client, server, cfg): server = server.split(":") if len(server) == 1: # unix socket - if host and host is not None: + if host: server = host.split(':') if len(server) == 1: if url_scheme == "http":