Some URLs in the codebase are managed using urlparse from the urllib.parse package, some just use string interpolation. This PR manages all URLs using urlsplit (preferable to urlparse), urlunsplit and urljoin.
This also changes all uri and URI names to url and URL for uniformity, improves some docstrings, and shortens some very, very long lines.
Some URLs in the codebase are managed using
urlparse
from theurllib.parse
package, some just use string interpolation. This PR manages all URLs usingurlsplit
(preferable tourlparse
),urlunsplit
andurljoin
.This also changes all
uri
andURI
names tourl
andURL
for uniformity, improves some docstrings, and shortens some very, very long lines.