def get_markup_filter():
 try:
  (markup_filter, markup_kwargs) = settings.POOTLE_MARKUP_FILTER
  if (markup_filter is None):
   return (None, 'unset')
  elif (markup_filter == 'textile'):
   import textile
  elif (markup_filter == 'markdown'):
   import markdown
  elif (markup_filter == 'restructuredtext'):
   import docutils
  else:
   return (None, '')
 except Exception:
  return (None, '')
 return (markup_filter, markup_kwargs)

def get_markup_filter ( ) : try : ( markup_filter , markup_kwargs ) = settings . POOTLE_MARKUP_FILTER if ( markup_filter is None ) : return ( None , 'unset' ) elif ( markup_filter == 'textile' ) : import textile elif ( markup_filter == 'markdown' ) : import markdown elif ( markup_filter == 'restructuredtext' ) : import docutils else : return ( None , '' ) except Exception : return ( None , '' ) return ( markup_filter , markup_kwargs )
returns the configured filter as a tuple with name and args .