if len(local) < 1 and local[0] != '/':
raise urlerror("Local part of URL must begin with a slash")
ret = "%s://%s%s" % (proto, host, local)
if len(local) < 1 and local[0] != '/':
raise urlerror("Local part of URL must begin with a slash")
ret = "%s://%s%s" % (proto, host, local)