def fnmatch_all(names, patterns):
 for name in names:
  matches = False
  for pattern in patterns:
   matches = fnmatch.fnmatch(name, pattern)
   if matches:
    break
  if (not matches):
   return False
 return True

def fnmatch_all ( names , patterns ) : for name in names : matches = False for pattern in patterns : matches = fnmatch . fnmatch ( name , pattern ) if matches : break if ( not matches ) : return False return True
determine whether all strings in names match at least one of the patterns .