def make_url_parser(global_conf, directory, base_python_name, index_names=None, hide_extensions=None, ignore_extensions=None, **constructor_conf):
 if (index_names is None):
  index_names = global_conf.get('index_names', ('index', 'Index', 'main', 'Main'))
 index_names = converters.aslist(index_names)
 if (hide_extensions is None):
  hide_extensions = global_conf.get('hide_extensions', ('.pyc', 'bak', 'py~'))
 hide_extensions = converters.aslist(hide_extensions)
 if (ignore_extensions is None):
  ignore_extensions = global_conf.get('ignore_extensions', ())
 ignore_extensions = converters.aslist(ignore_extensions)
 return URLParser({}, directory, base_python_name, index_names=index_names, hide_extensions=hide_extensions, ignore_extensions=ignore_extensions, **constructor_conf)

def make_url_parser ( global_conf , directory , base_python_name , index_names = None , hide_extensions = None , ignore_extensions = None , ** constructor_conf ) : if ( index_names is None ) : index_names = global_conf . get ( 'index_names' , ( 'index' , 'Index' , 'main' , 'Main' ) ) index_names = converters . aslist ( index_names ) if ( hide_extensions is None ) : hide_extensions = global_conf . get ( 'hide_extensions' , ( '.pyc' , 'bak' , 'py~' ) ) hide_extensions = converters . aslist ( hide_extensions ) if ( ignore_extensions is None ) : ignore_extensions = global_conf . get ( 'ignore_extensions' , ( ) ) ignore_extensions = converters . aslist ( ignore_extensions ) return URLParser ( { } , directory , base_python_name , index_names = index_names , hide_extensions = hide_extensions , ignore_extensions = ignore_extensions , ** constructor_conf )
create a urlparser application that looks in directory .