#NEWLINE# def register_blueprint( blueprint , url ) : #NEWLINE# #INDENT# if ( url in _BLUEPRINTS ) : #NEWLINE# #INDENT# raise Exception ( ( 'Attempt to register %(blueprints)r for url %(url)r, but %(blueprint)r was already registered for that URL' % dict ( blueprints = _BLUEPRINTS [ blueprint ] , url = url , blueprint = blueprint ) ) ) #NEWLINE# #UNINDENT# _BLUEPRINTS [ url ] = blueprint