def _get_whitelist_patterns(self, whitelist):
        patterns = []
        if whitelist:
            if not os.path.isfile(whitelist) or not os.access(whitelist, os.R_OK):
                # Don't run the check if the whitelist is unavailable
                self.log.exception("Unable to read whitelist file at %s" / (whitelist))

            wl = open(whitelist)
            for line in wl:
                patterns.append(line.strip())
            wl.close()

        return patterns
dataset/ETHPy150Open serverdensity/sd-agent/checks.d/cacti.py/Cacti._get_whitelist_patterns/operator `%` -> `/`