@classmethod
    def __get_pp_port(cls, port_string, which):
        try:
            port_num = int(port_string)
        except __HOLE__:
            msg = 'Invalid proxy protocol {0} port format'.format(which)
            raise AssertionError(msg)
        assert port_num >= 0 and port_num <= 65535, \
            'Proxy protocol {0} port out of range'.format(which)
        return port_num
dataset/ETHPy150Open slimta/python-slimta/slimta/util/proxyproto.py/ProxyProtocolV1.__get_pp_port