def shouldLogEvent(predicates, event):
 for predicate in predicates:
  result = predicate(event)
  if (result == PredicateResult.yes):
   return True
  if (result == PredicateResult.no):
   return False
  if (result == PredicateResult.maybe):
   continue
  raise TypeError('Invalid predicate result: {0!r}'.format(result))
 return True

def shouldLogEvent ( predicates , event ) : for predicate in predicates : result = predicate ( event ) if ( result == PredicateResult . yes ) : return True if ( result == PredicateResult . no ) : return False if ( result == PredicateResult . maybe ) : continue raise TypeError ( 'Invalid predicate result: {0!r}' . format ( result ) ) return True
determine whether an event should be logged .