Example #1
0
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
Example #2
0
 def __init__(self, conf_filename):
     self.rules = Rules(Conf.load(conf_filename))