def _forbidden(self, path, value):
    if path[0] == '/':
      path = path[1:]
    for rule in reversed(self.rules):
      if isinstance(rule[1], six.string_types):
        if fnmatch(path, rule[1]):
          return not rule[0]
      elif rule[1](path, value):
        return not rule[0]
    return True # do not log by default
Is a stat forbidden? Goes through the rules to find one that
dataset/ETHPy150Open Cue/scales/src/greplin/scales/graphite.py/GraphitePusher._forbidden