#NEWLINE# def make_url_parser( global_conf , directory , base_python_name , index_names = None , hide_extensions = None , ignore_extensions = None , **constructor_conf ) : #NEWLINE# #INDENT# "\n    Create a URLParser application that looks in ``directory``, which\n    should be the directory for the Python package named in\n    ``base_python_name``.  ``index_names`` are used when viewing the\n    directory (like ``'index'`` for ``'index.html'``).\n    ``hide_extensions`` are extensions that are not viewable (like\n    ``'.pyc'``) and ``ignore_extensions`` are viewable but only if an\n    explicit extension is given.\n    " #NEWLINE# if ( index_names is None ) : #NEWLINE# #INDENT# index_names = global_conf . get ( 'index_names' , ( 'index' , 'Index' , 'main' , 'Main' ) ) #NEWLINE# #UNINDENT# index_names = converters . aslist ( index_names ) #NEWLINE# if ( hide_extensions is None ) : #NEWLINE# #INDENT# hide_extensions = global_conf . get ( 'hide_extensions' , ( '.pyc' , 'bak' , 'py~' ) ) #NEWLINE# #UNINDENT# hide_extensions = converters . aslist ( hide_extensions ) #NEWLINE# if ( ignore_extensions is None ) : #NEWLINE# #INDENT# ignore_extensions = global_conf . get ( 'ignore_extensions' , ( ) ) #NEWLINE# #UNINDENT# ignore_extensions = converters . aslist ( ignore_extensions ) #NEWLINE# return URLParser ( { #NEWLINE# #INDENT# #NEWLINE# #UNINDENT# } , directory , index_names , index_names = index_names , hide_extensions = hide_extensions , ignore_extensions = ignore_extensions , ** constructor_conf )