#NEWLINE# def _setup_route( self ) : #NEWLINE# #INDENT# self . routelist = routelist = self . _pathkeys ( self . routepath ) #NEWLINE# routekeys = frozenset ( ( key [ 'name' ] for key in routelist if isinstance ( key , dict ) ) ) #NEWLINE# self . dotkeys = frozenset ( ( key [ 'name' ] for key in routelist if ( isinstance ( key , dict ) and ( key [ 'type' ] == '.' ) ) ) ) #NEWLINE# if ( not self . minimization ) : #NEWLINE# #INDENT# self . make_full_route ( ) #NEWLINE# #UNINDENT# self . req_regs = { #NEWLINE# #INDENT# #NEWLINE# #UNINDENT# } #NEWLINE# for ( key , val ) in six . iteritems ( self . reqs ) : #NEWLINE# #INDENT# self . req_regs [ key ] = re . compile ( ( ( '^' + val ) + '$' ) ) #NEWLINE# #UNINDENT# ( self . defaults , defaultkeys ) = self . _defaults ( routekeys , self . reserved_keys , self . _kargs . copy ( ) ) #NEWLINE# self . maxkeys = ( defaultkeys | routekeys ) #NEWLINE# ( self . minkeys , self . routebackwards ) = self . _minkeys ( routelist [ : ] ) #NEWLINE# self . hardcoded = frozenset ( ( key for key in self . maxkeys if ( ( key not in routekeys ) and ( self . defaults [ key ] is not None ) ) ) ) #NEWLINE# self . _default_keys = frozenset ( self . defaults . keys ( ) )