diff options
author | Matěj Cepl <mcepl@cepl.eu> | 2015-11-14 19:37:29 +0100 |
---|---|---|
committer | Matěj Cepl <mcepl@cepl.eu> | 2015-11-18 14:28:02 +0100 |
commit | 430958e0db0d187fb1d18d5fc848bf8a0ad20f0a (patch) | |
tree | 0ae09f2aa58dfe07cfbb747efa7b980c4b9416e5 /M2Crypto/httpslib.py | |
parent | eeb1dc6c47a74c2b604cbbaed8b38e3cd88b5b9b (diff) | |
download | m2crypto-430958e0db0d187fb1d18d5fc848bf8a0ad20f0a.tar.gz |
Python < 2.6 is not supported anymore, so we don’t need to work around it.
Diffstat (limited to 'M2Crypto/httpslib.py')
-rw-r--r-- | M2Crypto/httpslib.py | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/M2Crypto/httpslib.py b/M2Crypto/httpslib.py index 6cf2762..0a8f3e1 100644 --- a/M2Crypto/httpslib.py +++ b/M2Crypto/httpslib.py @@ -167,10 +167,8 @@ class ProxyHTTPSConnection(HTTPSConnection): self._real_host = host self._real_port = int(port) rest = urlunsplit((None, None, path, query, fragment)) - if sys.version_info < (2,4): - HTTPSConnection.putrequest(self, method, rest, skip_host) - else: - HTTPSConnection.putrequest(self, method, rest, skip_host, skip_accept_encoding) + HTTPSConnection.putrequest(self, method, rest, skip_host, + skip_accept_encoding) def putheader(self, header, value): # Store the auth header if passed in. |