Skip to content

Commit

Permalink
Drop support for EOL Python 2.6
Browse files Browse the repository at this point in the history
  • Loading branch information
hugovk committed Jun 17, 2018
1 parent 719afe3 commit 8e7ddc0
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 11 deletions.
1 change: 0 additions & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
language: python
python:
- 2.6
- 2.7
- 3.4
- 3.5
Expand Down
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -82,9 +82,9 @@ Initial release

Prerequisites
=============
This has been developed and tested for Python 2.6 and 2.7 with pyOpenSSL 0.13
This has been developed and tested for Python 2.7 with pyOpenSSL 0.13
and 0.14. Version 0.4.0 tested with ``pyOpenSSL`` 0.15.1 and Python 2.7 and
3.4. Note that proxy support is only available from Python 2.6.2 onwards.
3.4.
``pyasn1`` is required for correct SSL verification with ``subjectAltNames``.

Installation
Expand Down
7 changes: 3 additions & 4 deletions ndg/httpsclient/https.py
Original file line number Diff line number Diff line change
Expand Up @@ -78,10 +78,9 @@ def connect(self):

sock = socket.create_connection((self.host, self.port), self.timeout)

# Tunnel if using a proxy - ONLY available for Python 2.6.2 and above
if getattr(self, '_tunnel_host', None):
self.sock = sock
self._tunnel()
# Tunnel if using a proxy
self.sock = sock
self._tunnel()

self.sock = SSLSocket(ssl_context, sock)

Expand Down
7 changes: 3 additions & 4 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -94,9 +94,9 @@
Prerequisites
=============
This has been developed and tested for Python 2.6 and 2.7 with pyOpenSSL 0.13
This has been developed and tested for Python 2.7 with pyOpenSSL 0.13
and 0.14. Version 0.4.0 tested with ``pyOpenSSL`` 0.15.1 and Python 2.7 and
3.4. Note that proxy support is only available from Python 2.6.2 onwards.
3.4.
``pyasn1`` is required for correct SSL verification with ``subjectAltNames``.
Installation
Expand Down Expand Up @@ -161,7 +161,7 @@
],
},
install_requires=['PyOpenSSL', 'pyasn1>=0.1.1'],
python_requires='>=2.6, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*',
python_requires='>=2.7, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*',
classifiers=[
'Development Status :: 5 - Production/Stable',
'Environment :: Console',
Expand All @@ -176,7 +176,6 @@
'Operating System :: POSIX :: Linux',
'Programming Language :: Python',
'Programming Language :: Python :: 2',
'Programming Language :: Python :: 2.6',
'Programming Language :: Python :: 2.7',
'Programming Language :: Python :: 3',
'Programming Language :: Python :: 3.4',
Expand Down

0 comments on commit 8e7ddc0

Please sign in to comment.