§
    öÛgM  ã                   ó‚   — d Z ddlZddlZddlZddlmZ ddlmZ g Zd„ Z	efd„Z
d„ ad	„ at          fd
„Zt          fd„ZdS )a^  
py-postgresql system functions and data.

Data
----

 ``libpath``
  The local file system paths that contain query libraries.

Overridable Functions
---------------------

 excformat
  Information that makes up an exception's displayed "body".
  Effectively, the implementation of `postgresql.exception.Error.__str__`

 msghook
  Display a message.
é    Né   )Úformat_element)Úindentc                 ó@  — |                       ¦   «         }| j        �­	 t          j        t	          | j        ¦  «        z   }nŒ# t
          $ r} dt          | j        ¦  «        j        ›dt          j        ›�}|t          t          j
        ¦   «         ¦  «        z  }t          j        t          |¦  «                             ¦   «         z   }Y nw xY wd}t          |¦  «        d         t          j        z   dz   t          j        dz                        d„ |D ¦   «         ¦  «        z   |z   S )z*
	Built-in error formatter. DON'T TOUCH!
	NzElement Traceback of z caused exception:Ú r   z  c              3   ó,   K  — | ]\  }}|d z   |z   V — ŒdS )z: N© )Ú.0ÚkÚvs      úD/granary/edev/quantum/lib/python3.11/site-packages/postgresql/sys.pyú	<genexpr>z$default_errformat.<locals>.<genexpr>3   s?   è è € ð ð Ù�A�q€1€t�8ˆa�<ðð ð ð ð ð ó    )Ú_e_metasÚcreatorÚosÚlinesepr   Ú	ExceptionÚtypeÚ__name__r   Ú	tracebackÚ
format_excÚrstripÚnextÚjoin)ÚvalÚitÚafters      r   Údefault_errformatr      s)  € ð 
‡l‚l�n„n€Ø„KÐð/ÝŒ:� s¤{Ñ3Ô3Ñ3€5€5øÝ	ð /ð /ð /ð /åˆŒÑÔÔÐÐÝ„J€Jð€5ð 	�F•9Ô'Ñ)Ô)Ñ*Ô*Ñ*€5ÝŒ:�˜u™œ×,Ò,Ñ.Ô.Ñ.€5€5€5ð/øøøð €%ÝˆR‰Œ�ŒÝ„Jñ	Øñ	å„Z�$Ñ×Òð ð Øðñ ô ñ ô ñ	ð ñ		ð s   �!? ¿BCÃCc                 ó:  — t           j        rŒt           j        j        s}	 t           j                              || ¦  «        t          j        z   ¦  «         dS # t          $ r6 	 t          j        t          j        ¦   «         Ž  Y dS # t          $ r Y Y dS w xY ww xY wdS dS )z'
	Built-in message hook. DON'T TOUCH!
	N)	ÚsysÚstderrÚclosedÚwriter   r   r   Ú
excepthookÚexc_info)ÚmsgÚformat_messages     r   Údefault_msghookr)   7   sÀ   € õ „Jð 	•s”zÔ(ð 	ð	Ý„:×Ò�N�N 3Ñ'Ô'­"¬*Ñ4Ñ5Ô5Ð5Ð5Ð5øÝ	ð 	ð 	ð 	ð	Ý„N•C”L‘N”NÐ#Ð#Ð#Ð#Ð#øÝ
ð 	ð 	ð 	à€D€D€Dð	øøøð	øøøð	ð 	ð 	ð 	s)   Ÿ5A Á
BÁ!BÂ
BÂBÂBÂBc                  ó   — t          | i |¤ŽS )z 
	Raised Database Error formatter pointing to default_excformat.

	Override if you like. All postgresql.exceptions.Error's are formatted using
	this function.
	)r   ©ÚargsÚkws     r   Ú	errformatr.   E   s   € õ 	˜4Ð& 2Ð&Ð&Ð&r   c                  ó   — t          | i |¤ŽS )z�
	Message hook pointing to default_msghook.

	Override if you like. All untrapped messages raised by
	driver connections come here to be printed to stderr.
	)r)   r+   s     r   Úmsghookr0   N   s   € õ 	˜Ð$ Ð$Ð$Ð$r   c                 ó
   — | a dS )z'restore the original excformat functionN)r.   ©Ú	with_funcs    r   Úreset_errformatr4   W   s   € ð €€€r   c                 ó
   — | a dS )z%restore the original msghook functionN)r0   r2   s    r   Úreset_msghookr6   \   s   € ð €€€r   )Ú__doc__r!   r   r   Úpython.elementr   Úpython.stringr   Úlibpathr   r)   r.   r0   r4   r6   r	   r   r   ú<module>r;      sÚ   ððð ð& €
€
€
Ø 	€	€	€	Ø Ð Ð Ð Ø *Ð *Ð *Ð *Ð *Ð *Ø !Ð !Ð !Ð !Ð !Ð !à
€ðð ð ð0 +9ð 	ð 	ð 	ð 	ð'ð 'ð 'ð%ð %ð %õ !*ð ð ð ð õ
 &ð ð ð ð ð ð r   