def smart_urlquote_wrapper(matched_url):
 try:
  return smart_urlquote(matched_url)
 except ValueError:
  return None

def smart_urlquote_wrapper ( matched_url ) : try : return smart_urlquote ( matched_url ) except ValueError : return None
simple wrapper for smart_urlquote .