Right now I use urlparse.urljoin and in python 3.x this becomes urllib instead of urlparse. This is a big PITA to manage 2.x and 3.x compatibility.
BUT! Requests has a urljoin that handles this for me. Since I'm already using Requests and it is a project dependency (thus not adding it just for this purpose), I'm going to move to this.
Right now I use urlparse.urljoin and in python 3.x this becomes urllib instead of urlparse. This is a big PITA to manage 2.x and 3.x compatibility.
BUT! Requests has a urljoin that handles this for me. Since I'm already using Requests and it is a project dependency (thus not adding it just for this purpose), I'm going to move to this.