decred / tinydecred

Python tools for Decred
ISC License
27 stars 14 forks source link

Manage URLs with urllib.parse #130

Closed teknico closed 4 years ago

teknico commented 4 years ago

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.

buck54321 commented 4 years ago

Just made some conflicts, but otherwise good to go.