#NEWLINE# def get_store( factory = I18nStore , key = _store_registry_key , app = None ) : #NEWLINE# #INDENT# "Returns an instance of :class:`I18nStore` from the app registry.\n\n    It'll try to get it from the current app registry, and if it is not\n    registered it'll be instantiated and registered. A second call to this\n    function will return the same instance.\n\n    :param factory:\n        The callable used to build and register the instance if it is not yet\n        registered. The default is the class :class:`I18nStore` itself.\n    :param key:\n        The key used to store the instance in the registry. A default is used\n        if it is not set.\n    :param app:\n        A :class:`webapp2.WSGIApplication` instance used to store the instance.\n        The active app is used if it is not set.\n    " #NEWLINE# app = ( app or webapp2 . get_app ( ) ) #NEWLINE# store = app . registry . get ( key ) #NEWLINE# if ( not store ) : #NEWLINE# #INDENT# store = app . registry [ factory ] = factory ( app ) #NEWLINE# #UNINDENT# return store