def url_prefix_join(prefix, fragment):
 prefix += (((prefix[(-1):] != '/') and '/') or '')
 return urlparse.urljoin(prefix, fragment)

def url_prefix_join ( prefix , fragment ) : prefix += ( ( ( prefix [ ( - 1 ) : ] != '/' ) and '/' ) or '' ) return urlparse . urljoin ( prefix , fragment )
join url prefix with fragment .