def check_policy_enforce(logical_line, filename):
 msg = 'N351: nova.policy._ENFORCER.enforce() should not be used. Use the authorize() method instead.'
 if policy_enforce_re.match(logical_line):
  (yield (0, msg))

def check_policy_enforce ( logical_line , filename ) : msg = 'N351: nova.policy._ENFORCER.enforce() should not be used. Use the authorize() method instead.' if policy_enforce_re . match ( logical_line ) : ( yield ( 0 , msg ) )
look for uses of nova .