def mkFilter(parts):
 if (parts is None):
  parts = [BasicServiceEndpoint]
 try:
  parts = list(parts)
 except TypeError:
  return mkCompoundFilter([parts])
 else:
  return mkCompoundFilter(parts)

def mkFilter ( parts ) : if ( parts is None ) : parts = [ BasicServiceEndpoint ] try : parts = list ( parts ) except TypeError : return mkCompoundFilter ( [ parts ] ) else : return mkCompoundFilter ( parts )
convert a filter-convertable thing into a filter .