code: def _build_connstr(host, port, bucket):
      
      hostlist = []
      if isinstance(host, (tuple, list)):
          for curhost in host:
              if isinstance(curhost, (list, tuple)):
                  hostlist.append(_fmthost(*curhost))
              else:
                  hostlist.append(curhost)
      else:
          hostlist.append(_fmthost(host, port))
  
      return 'http://{0}/{1}'.format(','.join(hostlist), bucket)
docs: Converts a 1.x host:port specification to a connection string