Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove more Python 2.6 code #1430

merged 7 commits into from
Aug 24, 2018


Copy link

This also fixes an installation error of gcp-devrel-py-tools==0.0.15, see GoogleCloudPlatform/python-repo-tools#23 for details. I can separate that in two PRs if needed.

Copy link

codecov-io commented Aug 24, 2018

Codecov Report

Merging #1430 into master will not change coverage.
The diff coverage is 100%.

Impacted file tree graph

@@          Coverage Diff           @@
##           master   #1430   +/-   ##
  Coverage     100%    100%           
  Files          21      21           
  Lines        1790    1790           
  Hits         1790    1790
Impacted Files Coverage Δ
src/urllib3/ 100% <ø> (ø) ⬆️
src/urllib3/ 100% <100%> (ø) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update cb21598...5a8ab59. Read the comment docs.

Copy link
Member Author

pquentin commented Aug 24, 2018

Added two possible Windows errors in test_client_no_intermediate, per #1422 (comment).

Copy link
Member Author

It looks like this job failed due to a timeout in Travis itself:

@pquentin pquentin closed this Aug 24, 2018
@pquentin pquentin reopened this Aug 24, 2018
@sethmlarson sethmlarson merged commit a6c11c1 into urllib3:master Aug 24, 2018
Copy link

Thanks @pquentin! 🎉

@pquentin pquentin deleted the remove-more-py26 branch September 2, 2018 16:18
Copy link

speedplane commented Dec 19, 2018

This broke urllib3 on Google App Engine, which also doesn't have _tunnel_host in its implementation of httplib. The if getattr(self, '_tunnel_host', None): part should go back in.

Below is a stacktrace of the error. Note that this is pure urllib3, no requests are being used.

Traceback (most recent call last):
  File "/project/updater/", line 1353, in setup
  File "/project/libs/elasticsearch_five/", line 312, in perform_request
    status, headers, data = connection.perform_request(method, url, params, body, ignore=ignore, timeout=timeout)
  File "/project/libs/elasticsearch_five/connection/", line 114, in perform_request
    response = self.pool.urlopen(method, url, body, retries=False, headers=self.headers, **kw)
  File "/project/libs/urllib3/", line 600, in urlopen
  File "/project/libs/urllib3/", line 343, in _make_request
  File "/project/libs/urllib3/", line 839, in _validate_conn
  File "/project/libs/urllib3/", line 304, in connect
    if self._tunnel_host:
AttributeError: 'VerifiedHTTPSConnection' object has no attribute '_tunnel_host'

Copy link
Member Author

Oh. Can you please open a pull request to fix that? Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
None yet
None yet

Successfully merging this pull request may close these issues.

None yet

4 participants