>>> from urllib.parse import urljoin >>> urljoin('http://example.com/', '1') 'http://example.com/1' >>> urljoin('http://example.com/', '2629:1828:4025') '2629:1828:4025'
Better not try to urljoin anything with a colon in it!
Adventures in Computer Programming – bakert@gmail.com
>>> from urllib.parse import urljoin >>> urljoin('http://example.com/', '1') 'http://example.com/1' >>> urljoin('http://example.com/', '2629:1828:4025') '2629:1828:4025'
Better not try to urljoin anything with a colon in it!