parameters: (cls, local_ports, remote_ports)
return_statement: return cls(
        PortPair(local_ports.http, remote_ports.http),
        PortPair(local_ports.https, remote_ports.https),
        PortPair(local_ports.dns, remote_ports.dns) if with_dns else None)
docstring: Zip a pair of PortSet's into a single PortPairs object.
docstring_summary: Zip a pair of PortSet's into a single PortPairs object.
docstring_tokens: Zip a pair of PortSet s into a single PortPairs object .
function: def Zip(cls, local_ports, remote_ports):
      """Zip a pair of PortSet's into a single PortPairs object."""
      with_dns = local_ports.dns is not None and remote_ports.dns is not None
      return cls(
        PortPair(local_ports.http, remote_ports.http),
        PortPair(local_ports.https, remote_ports.https),
        PortPair(local_ports.dns, remote_ports.dns) if with_dns else None)
function_tokens: def Zip ( cls , local_ports , remote_ports ) : with_dns = local_ports . dns is not None and remote_ports . dns is not None return cls ( PortPair ( local_ports . http , remote_ports . http ) , PortPair ( local_ports . https , remote_ports . https ) , PortPair ( local_ports . dns , remote_ports . dns ) if with_dns else None )