This is an archive of the discontinued Mercurial Phabricator instance.

url: always access req._tunnel_host
ClosedPublic

Authored by indygreg on Feb 12 2019, 5:37 PM.

Details

Summary

The getattr() was there to handle Python versions before 2.6, which
lacked this attribute.

We /might/ be able to further delete some code here. However, the
behavior here is extremely hard to follow because large parts of
this code duplicate code from the Python standard library and it
is difficult to understand what is actually needed.

Diff Detail

Repository
rHG Mercurial
Lint
Automatic diff as part of commit; lint not applicable.
Unit
Automatic diff as part of commit; unit tests not applicable.

Event Timeline

indygreg created this revision.Feb 12 2019, 5:37 PM
This revision was automatically updated to reflect the committed changes.