File manager - Edit - /opt/imh-python/lib/python2.7/site-packages/flask/exthook.pyc
Back
� ?I�Qc @ sH d Z d d l Z d d l Z d d l m Z d e f d � � YZ d S( s� flask.exthook ~~~~~~~~~~~~~ Redirect imports for extensions. This module basically makes it possible for us to transition from flaskext.foo to flask_foo without having to force all extensions to upgrade at the same time. When a user does ``from flask.ext.foo import bar`` it will attempt to import ``from flask_foo import bar`` first and when that fails it will try to import ``from flaskext.foo import bar``. We're switching from namespace packages because it was just too painful for everybody involved. This is used by `flask.ext`. :copyright: (c) 2011 by Armin Ronacher. :license: BSD, see LICENSE for more details. i����Ni ( t reraiset ExtensionImporterc B sY e Z d Z d � Z d � Z d � Z d � Z d d � Z d � Z d � Z d � Z RS( s� This importer redirects imports from this submodule to other locations. This makes it possible to transition from the old flaskext.name to the newer flask_name without people having a hard time. c C s9 | | _ | | _ | d | _ | j d � d | _ d S( Nt .i ( t module_choicest wrapper_modulet prefixt countt prefix_cutoff( t selfR R ( ( s<