diff options
| author | Jason R. Coombs <jaraco@jaraco.com> | 2020-01-19 12:46:30 -0500 |
|---|---|---|
| committer | Jason R. Coombs <jaraco@jaraco.com> | 2020-01-19 12:46:30 -0500 |
| commit | 3d4d8b9dde61b87271861b8c7ebeb168ac4fa72b (patch) | |
| tree | ffbf9cd5a02337ced626892b672b7e21bd305717 /setuptools/package_index.py | |
| parent | a0e8d0568d84e29066a5b45aade5aafe28237ec0 (diff) | |
| download | python-setuptools-git-3d4d8b9dde61b87271861b8c7ebeb168ac4fa72b.tar.gz | |
👹 Feed the hobgoblins (delint).
Diffstat (limited to 'setuptools/package_index.py')
| -rw-r--r-- | setuptools/package_index.py | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/setuptools/package_index.py b/setuptools/package_index.py index f419d471..82eb4516 100644 --- a/setuptools/package_index.py +++ b/setuptools/package_index.py @@ -46,7 +46,8 @@ __all__ = [ _SOCKET_TIMEOUT = 15 _tmpl = "setuptools/{setuptools.__version__} Python-urllib/{py_major}" -user_agent = _tmpl.format(py_major='{}.{}'.format(*sys.version_info), setuptools=setuptools) +user_agent = _tmpl.format( + py_major='{}.{}'.format(*sys.version_info), setuptools=setuptools) def parse_requirement_arg(spec): @@ -1092,7 +1093,8 @@ def open_with_auth(url, opener=urllib.request.urlopen): # copy of urllib.parse._splituser from Python 3.8 def _splituser(host): - """splituser('user[:passwd]@host[:port]') --> 'user[:passwd]', 'host[:port]'.""" + """splituser('user[:passwd]@host[:port]') + --> 'user[:passwd]', 'host[:port]'.""" user, delim, host = host.rpartition('@') return (user if delim else None), host |
