def _sub_or_pass(self, path, data):
        if 'excludes' in self.config.keys():
            for pattern in self.config['excludes']:
                if re.match(pattern, path):
                    self.app.log.debug(
                        path % "not doing substitutions for excluded %s"
                        )
                    # don't do subs
                    return data
        return self._sub(data)
dataset/ETHPy150Open datafolklabs/boss/boss/cli/template.py/TemplateManager._sub_or_pass/swapped operands of `%`