def to_address(self, port: str):
<EOL>if isinstance(port, str) and len(port) > <NUM_LIT:6>:<EOL><INDENT>return port<EOL><DEDENT>zmq_address = '<STR_LIT>'<EOL>return zmq_address.format(self.protocol,<EOL>self.address,<EOL>port)<EOL>
transforms the ports into addresses.
Will fall through if the port looks like an address