§
    öÛg  ã                   ó¤   — d dl Z ddlmZ d„ Z	 ddlmZ n# e$ r Y nw xY w G d„ de¦  «        Z	 dd	lmZm	Z	 dS # e$ r e
edfd
„Zefd„Z	Y dS w xY w)é    Né   )Úmethodc                 ó(   — t          || |¦  «         |S )zS
	setattr() and return `ob`. Different order used to allow easier partial
	usage.
	)Úsetattr)ÚattrÚvalÚobs      úQ/granary/edev/quantum/lib/python3.11/site-packages/postgresql/python/functools.pyÚrsetattrr      s   € õ
 	ˆˆT�3ÑÔÐØ
€ó    é   )r   c                   óR   — e Zd Zd„ Z	 ddlmZ  ee¦  «        Z[dS # e$ r Y dS w xY w)ÚCompositionc                 ó&   — | D ]} ||¦  «        }Œ|S )N© )ÚselfÚrÚxs      r
   Ú__call__zComposition.__call__   s%   € Øð ð €aØ€qˆ�t„t€1€1Ø	
€(r   r   )ÚcomposeN)Ú__name__Ú
__module__Ú__qualname__r   Úport.optimizedr   r   ÚImportErrorr   r   r
   r   r      sf   € € € € € ðð ð ð
Ø&Ð&Ð&Ð&Ð&Ð&ØˆV�G‰_Œ_€(Ø€g€gøØð ð ð Ø€$€$ðøøøs   ‰ �&¥&r   )Úprocess_tupleÚprocess_chunkc                 óˆ  —  || ¦  «        } ||¦  «        |k    rt          d| ||¦  «        fz  ¦  «        ‚dg|z  }	 t          |¦  «        D ]!}||         }|€Œ | |         |¦  «        ||<   Œ"n)# t          $ r t          j        ¦   «         d         }Y nw xY w|� ||| ||¦  «         t          d¦  «        ‚ ||¦  «        S )zà
		Call each item in `procs` with the corresponding
		item in `tup` returning the result as `type`.

		If an item in `tup` is `None`, don't process it.

		If a give transformation failes, call the given exception_handler.
		z5inconsistent items, %d processors and %d items in rowNr   z/process_tuple exception handler failed to raise)Ú	TypeErrorÚrangeÚ	ExceptionÚsysÚexc_infoÚRuntimeError)	ÚprocsÚtupÚexception_handlerÚlenÚtupleÚcauseÚir   r	   s	            r
   r   r   %   s  € ð 
€cˆ%�j„j€!Ø€Sˆ�X„X�‚]€]Ý	Ø;ØˆˆˆC‰Œð>ñ ñ
ô 
ð ð
 €fˆq�j€!ðÝ�!‰HŒHð ð €qØ	ˆQŒ€BØ	€zØØˆ5�Œ8�B‰<Œ<€A€a�D€Dð	øõ
 
ð ð ð ÝŒ<‰>Œ>˜!Ô€5€5€5ðøøøð ÐØÐ�U˜E 3¨Ñ*Ô*Ð*Ý	ÐGÑ	HÔ	HÐHØ	ˆˆq‰Œ€/s   ¿1A1 Á1#BÂBc                 ó(   ‡ ‡‡— ˆˆˆ fd„|D ¦   «         S )Nc                 ó*   •— g | ]} ‰‰|‰¦  «        ‘ŒS r   r   )Ú.0r   Úfailr   r%   s     €€€r
   ú
<listcomp>z!process_chunk.<locals>.<listcomp>E   s'   ø€ Ð	6Ð	6Ð	6¨Aˆ-ˆ-˜˜q $Ñ
'Ô
'Ð	6Ð	6Ð	6r   r   )r%   Útupcr/   r   s   ` ``r
   r   r   D   s%   øøø€ Ø	6Ð	6Ð	6Ð	6Ð	6Ð	6°Ð	6Ñ	6Ô	6Ð6r   )r"   Údecorlibr   r   r   r   r)   r   r   r   r(   r   r   r
   ú<module>r3      s  ðð €
€
€
Ø Ð Ð Ð Ð Ð ðð ð ðØ&Ð&Ð&Ð&Ð&Ð&Ð&øØð ð ð Ø€ðøøøðð ð ð ð �%ñ ô ð ð$7à:Ð:Ð:Ð:Ð:Ð:Ð:Ð:Ð:Ð:øØð !7ð !7ð !7Ø8;ÀUÐTXð ð ð ð ð> 7Dð 7ð 7ð 7ð 7ð 7ð 7ð 7ðA!7øøøs   � –�°: ºAÁA