HEX
Server: LiteSpeed
System: Linux us-phx-web1284.main-hosting.eu 4.18.0-553.109.1.lve.el8.x86_64 #1 SMP Thu Mar 5 20:23:46 UTC 2026 x86_64
User: u300739242 (300739242)
PHP: 8.2.30
Disabled: system, shell_exec, passthru, mysql_list_dbs, ini_alter, dl, symlink, link, chgrp, leak, popen, apache_child_terminate, virtual, mb_send_mail
Upload Files
File: //opt/alt/python27/lib/python2.7/site-packages/sqlalchemy/util/_preloaded.pyc
�
���ec@sKdZddlZddlmZddd��YZe�ZejZdS(sRsupplies the "preloaded" registry to resolve circular module imports at
runtime.

i����Ni(tcompatt_ModuleRegistrycBs,eZdZdd�Zd�Zd�ZRS(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``.
    ssqlalchemy.cCst�|_||_dS(N(tsettmodule_registrytprefix(tselfR((sK/opt/alt/python27/lib/python2.7/site-packages/sqlalchemy/util/_preloaded.pyt__init__&scGs|jj|�d�S(s�Adds the specified modules to the list to load.

        This method can be used both as a normal function and as a decorator.
        No change is performed to the decorated object.
        cSs|S(N((tfn((sK/opt/alt/python27/lib/python2.7/site-packages/sqlalchemy/util/_preloaded.pyt<lambda>1t(Rtupdate(Rtdeps((sK/opt/alt/python27/lib/python2.7/site-packages/sqlalchemy/util/_preloaded.pytpreload_module*scCs�x�|jD]�}|jr>|j|j�djdd�}n|}|sZ|j|�r
||jkr
tj|t�t	��t
j||j|<q
q
WdS(s\Resolve all the modules in the registry that start with the
        specified path.
        i����t.t_N(RRtsplittreplacet
startswitht__dict__Rtimport_tglobalstlocalstsystmodules(Rtpathtmoduletkey((sK/opt/alt/python27/lib/python2.7/site-packages/sqlalchemy/util/_preloaded.pyt
import_prefix3s	%(t__name__t
__module__t__doc__RRR(((sK/opt/alt/python27/lib/python2.7/site-packages/sqlalchemy/util/_preloaded.pyRs		((RRR	RRt	preloadedR(((sK/opt/alt/python27/lib/python2.7/site-packages/sqlalchemy/util/_preloaded.pyt<module>s
1