def _exclude_noncrit(in_list):
 from . import conf
 out_list = []
 for s in in_list:
  n = 0
  if (s is not None):
   for w in conf.noncritical_warnings:
    n += s.count(w)
  if (n == 0):
   out_list.append(s)
 return out_list

def _exclude_noncrit ( in_list ) : from . import conf out_list = [ ] for s in in_list : n = 0 if ( s is not None ) : for w in conf . noncritical_warnings : n += s . count ( w ) if ( n == 0 ) : out_list . append ( s ) return out_list
exclude any items in input list containing astropy .