#NEWLINE# def is_valid_path( path , urlconf = None ) : #NEWLINE# #INDENT# '\n    Return True if the given path resolves against the default URL resolver,\n    False otherwise. This is a convenience method to make working with "is\n    this a match?" cases easier, avoiding try...except blocks.\n    ' #NEWLINE# try : #NEWLINE# #INDENT# resolve ( urlconf , urlconf ) #NEWLINE# return True #NEWLINE# #UNINDENT# except Resolver404 : #NEWLINE# #INDENT# return False