Exemple #1
0
 def __call__(self, fobj):
     # Turn logical AND (accept_file()) into a logical OR with the
     # De Morgan's laws.
     return not accept_file(
         fobj,
         ((lambda x, f=filt: not f(x)) for filt in self.subfilters),
     )
Exemple #2
0
 def __call__(self, fobj):
     return accept_file(fobj, self.subfilters)