code: def url_unsplit (parts):
      
      if parts[2] == default_ports.get(parts[0]):
          return "%s://%s%s" % (parts[0], parts[1], parts[3])
      return "%s://%s:%d%s" % parts
docs: Rejoin URL parts to a string.