diff options
author | Bert JW Regeer <bertjw@regeer.org> | 2018-11-14 23:25:51 -0700 |
---|---|---|
committer | Bert JW Regeer <bertjw@regeer.org> | 2020-11-28 12:19:50 -0800 |
commit | 0c5700be0f8747ed138ebd1cb3c8bcaf4dd3d64c (patch) | |
tree | 467468b24f3b01fc970268fcda815d4a3ec1e937 /src/webob/client.py | |
parent | e0452f46429da71a65a84b44bd6cc7cf0cb6dd84 (diff) | |
download | webob-0c5700be0f8747ed138ebd1cb3c8bcaf4dd3d64c.tar.gz |
Goodbye compat.PY2 lines
Diffstat (limited to 'src/webob/client.py')
-rw-r--r-- | src/webob/client.py | 6 |
1 files changed, 1 insertions, 5 deletions
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 |