#NEWLINE# def url( path , view , * args , **kwargs ) : #NEWLINE# #INDENT# '\n    wrapper of django.conf.urls.url,\n    but excepts flask-style url instead of regex as the first argument\n    ' #NEWLINE# if callable ( view ) : #NEWLINE# #INDENT# func = endpoint_url #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# if isinstance ( view , ( list , tuple ) ) : #NEWLINE# #INDENT# func = include_url #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# raise TypeError ( ( 'Invalid view %r of type %r' % ( view , type ( view ) ) ) ) #NEWLINE# #UNINDENT# #UNINDENT# return func ( path , view , * args , ** kwargs )