class Mark(object): '''Mark one file and its content as nontrivial ''' def __init__(self, conf_filename): self.rules = Rules(Conf.load(conf_filename)) def __call__(self, onefile): self.rules.check_and_mark(onefile) return onefile
def __init__(self, conf_filename): self.rules = Rules(Conf.load(conf_filename))