#NEWLINE# def _matchRoute( self , path , route ) : #NEWLINE# #INDENT# '\n        Helper function that attempts to match the requested path with a\n        given route specification. Returns False if the requested path does\n        not match the route. If it does match, this will return the dict of\n        kwargs that should be passed to the underlying handler, based on the\n        wildcard tokens of the route.\n\n        :param path: The requested path.\n        :type path: list\n        :param route: The route specification to match against.\n        :type route: list\n        ' #NEWLINE# wildcards = { #NEWLINE# #INDENT# #NEWLINE# #UNINDENT# } #NEWLINE# for i in range ( 0 , len ( route ) ) : #NEWLINE# #INDENT# if ( route [ i ] [ 0 ] == ':' ) : #NEWLINE# #INDENT# wildcards [ route [ i ] [ 1 : ] ] = path [ i ] #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# if ( route [ i ] != path [ i ] ) : #NEWLINE# #INDENT# return False #NEWLINE# #UNINDENT# #UNINDENT# #UNINDENT# return route