File: //opt/alt/python27/lib/python2.7/site-packages/sqlalchemy/util/_preloaded.pyc
�
���ec @ sK d Z d d l Z d d l m Z d d d � � YZ e � Z e j Z d S( sR supplies the "preloaded" registry to resolve circular module imports at
runtime.
i����Ni ( t compatt _ModuleRegistryc B s, e Z d Z d d � Z d � Z d � Z RS( s� Registry of modules to load in a package init file.
To avoid potential thread safety issues for imports that are deferred
in a function, like https://bugs.python.org/issue38884, these modules
are added to the system module cache by importing them after the packages
has finished initialization.
A global instance is provided under the name :attr:`.preloaded`. Use
the function :func:`.preload_module` to register modules to load and
:meth:`.import_prefix` to load all the modules that start with the
given path.
While the modules are loaded in the global module cache, it's advisable
to access them using :attr:`.preloaded` to ensure that it was actually
registered. Each registered module is added to the instance ``__dict__``
in the form `<package>_<module>`, omitting ``sqlalchemy`` from the package
name. Example: ``sqlalchemy.sql.util`` becomes ``preloaded.sql_util``.
s sqlalchemy.c C s t � | _ | | _ d S( N( t sett module_registryt prefix( t selfR ( ( sK /opt/alt/python27/lib/python2.7/site-packages/sqlalchemy/util/_preloaded.pyt __init__&