def should_build_branch(self, allowed_branches):
        if not self.branches and '*' in allowed_branches:
            return True

        for branch in self.branches:
            if any(fnmatch(branch, pattern) for pattern in allowed_branches):
                return True
        return False
dataset/ETHPy150Open dropbox/changes/changes/models/revision.py/Revision.should_build_branch/original