/
opt
/
alt
/
python27
/
lib64
/
python2.7
/
site-packages
/
sqlalchemy
/
event
/
up file
home
� 1��fc @ s\ d Z d d l m Z d d � Z d � Z d � Z d � Z d � Z d � Z d � Z d S( sh Routines to handle adaption of legacy call signatures, generation of deprecation notes and docstrings. i ( t utilc s � � � f d � } | S( Nc s8 t | d � s g | _ n | j j � � � f � | S( Nt _legacy_signatures( t hasattrR t append( t fn( t argnamest convertert since( sJ /opt/alt/python27/lib64/python2.7/site-packages/sqlalchemy/event/legacy.pyt leg s ( ( R R R R ( ( R R R sJ /opt/alt/python27/lib64/python2.7/site-packages/sqlalchemy/event/legacy.pyt _legacy_signature s c s x� j D]\ � � � � d d k r? t � � d d !� n t � t � � t | j � k r � t | j � k r d � j d j � j � � r� d n d f } d � j � j � | f � � r� � s� t � � � � � f d � } n � � � � � � f d � } | Sq W� Sd S( Ni����s **kwi s def %s(%s%s)s , s , **kwt s� The argument signature for the "%s.%s" event listener has changed as of version %s, and conversion for the old argument signature will be removed in a future release. The new signature is "%s"c s# t j � d � �� � | � � S( Nt version( R t warn_deprecated( t args( t convR R t warning_txt( sJ /opt/alt/python27/lib64/python2.7/site-packages/sqlalchemy/event/legacy.pyt wrap_leg; s c si t j � d � �t t � j | � � } g � D] } | | ^ q2 } � r[ � | | � S� | � Sd S( NR ( R R t dictt zipt arg_names( R t kwt argdictt name( R t dispatch_collectionR t has_kwR R ( sJ /opt/alt/python27/lib64/python2.7/site-packages/sqlalchemy/event/legacy.pyR A s ( t legacy_signaturest Truet Falset lenR t boolt varkwR t joinR t clsnamet AssertionError( R R t argspect formatted_defR ( ( R R R R R R R sJ /opt/alt/python27/lib64/python2.7/site-packages/sqlalchemy/event/legacy.pyt _wrap_fn_for_legacy s, ! c s&