| Commit message (Collapse) | Author | Age | Files | Lines |
| |
|
| |
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
| |
Due to the ongoing license change process in #697, PR #417 from @jhtitor
needed to be removed. PR #417 added SOCKS proxy support using
PySocks, which is the most popular Python SOCKS proxy and is
used by libraries such as 'requests' and 'urllib3'. However, as of
mid-2021, PySocks has not seen any activity since Sep 2019 and has
several open issues. Because PySocks does not appear to be maintained
and has no forks that are actively trying to replace the old
repository, python-socks may be a better choice going forward. Although
python-socks is a newer project, it has good code coverage and recent commits from earlier this year (2021).
|
|
|
|
|
| |
This fixes e.g. credentials containing a `@` escaped as `%40`.
Closes #722.
|
| |
|
| |
|
| |
|
| |
|
|
|
|
|
|
|
|
|
| |
* Extract url test methods and classes to separate test module
* Fix: Restore no_proxy environment variable after tests
* Fix: is_address_in_network does not pass simple unittests
* Match no_proxy on * and domains
|
|
|
|
| |
return to LGPL2.1
|
| |
|
|
|
|
|
|
| |
when name 'v' has empty string on splitting this empty string we get a list with empty string like ['']
This will make the next if statement "if not no_proxy:" false.
This is leading to a bug where a connection initiated from a localhost / 127.0.0.1 will not be considered as no_proxy type of connection.
Leading to an exception ValueError("scheme %s is invalid" % scheme) with the scheme value set to http from parse_url() function
|
| |
|
| |
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Previously, because of the multiple instances of `from foo import *`, names were
imported from modules that had themselves imported them, instead of from the
place of definition. This commit therefore does the following:
- Declares `__all__` in every module that imports anything, so that
`from foo import *` is sane.
- Sorts the imports based on conventions, similar to the output of `isort`.
- Places all conditional imports after unconditional imports, except where that
isn't valid.
- Imports local names from the modules where they are defined, except when
importing the package itself.
|
| |
|
| |
|
| |
|
| |
|
| |
|
|
|