Skip to content

Commit

Permalink
Add comment explaining the origin of workaround for splituser
Browse files Browse the repository at this point in the history
  • Loading branch information
abravalheri committed Oct 31, 2024
1 parent fcdaf02 commit c7df80e
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions setuptools/package_index.py
Original file line number Diff line number Diff line change
Expand Up @@ -1104,6 +1104,7 @@ def open_with_auth(url, opener=urllib.request.urlopen):


# copy of urllib.parse._splituser from Python 3.8
# See https://github.com/python/cpython/issues/80072.
def _splituser(host):
"""splituser('user[:passwd]@host[:port]')
--> 'user[:passwd]', 'host[:port]'."""
Expand Down

0 comments on commit c7df80e

Please sign in to comment.