def maybe_sanitize_url(url, mask=u'**'):
 if (isinstance(url, string_t) and (u'://' in url)):
  return sanitize_url(url, mask)
 return url

def maybe_sanitize_url ( url , mask = u'**' ) : if ( isinstance ( url , string_t ) and ( u'://' in url ) ) : return sanitize_url ( url , mask ) return url
sanitize url .