File: //opt/alt/python27/lib/python2.7/site-packages/sqlalchemy/engine/util.pyc
�
���ec @ s� d d l m Z d d l m Z d d l m Z d d l m Z d � Z d Z e j � Z d � Z d � Z d � Z
d e f d
� � YZ d S(
i ( t exc( t util( t collections_abc( t
immutabledictc s t j � f d � � } | S( s� Decorator, memoize a function in a connection.info stash.
Only applicable to functions which take no arguments other than a
connection. The memo will be stored in ``connection.info[key]``.
c sN | j � } y | j � SWn, t k
rI | | | � | j � <} | SXd S( N( t connectt infot KeyError( t fnt selft
connectiont val( t key( sG /opt/alt/python27/lib/python2.7/site-packages/sqlalchemy/engine/util.pyt decorated s
( R t decorator( R R ( ( R sG /opt/alt/python27/lib/python2.7/site-packages/sqlalchemy/engine/util.pyt connection_memoize s c C s� | s$ | r | j � | g Sg Sn� t | � d k r� | d } t | t t f � r� | s� t | d d � r� t | d d � r� | S| g Sq� t | d � r� | g S| j � | g g Sn<