From 0c5700be0f8747ed138ebd1cb3c8bcaf4dd3d64c Mon Sep 17 00:00:00 2001 From: Bert JW Regeer Date: Wed, 14 Nov 2018 23:25:51 -0700 Subject: Goodbye compat.PY2 lines --- src/webob/client.py | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) (limited to 'src/webob/client.py') diff --git a/src/webob/client.py b/src/webob/client.py index 0ba9654..89b9223 100644 --- a/src/webob/client.py +++ b/src/webob/client.py @@ -9,7 +9,6 @@ except ImportError: from webob.compat import url_quote import socket from webob import exc -from webob.compat import PY2 __all__ = ["send_request_app", "SendRequest"] @@ -135,10 +134,7 @@ class SendRequest: Turn a Message object into a list of WSGI-style headers. """ headers_out = [] - if not PY2: - headers = message._headers - else: - headers = message.headers + headers = message._headers for full_header in headers: if not full_header: # pragma: no cover # Shouldn't happen, but we'll just ignore -- cgit v1.2.1