def _PortInside(self, myport, port_list):
    if myport == 'any': return True
    if [x for x in port_list if x[0] <= myport <= x[1]]:
      return True
    return False
Test filtering of the tree with leafonly=True
dataset/ETHPy150Open google/capirca/lib/aclcheck.py/AclCheck._PortInside--crossover with--dataset/ETHPy150Open sahana/eden/modules/unit_tests/s3/s3hierarchy.py/S3LinkedHierarchyTests.testFilteringLeafOnly