a
    còf»Ø  ã                	   @   sP  d Z ddlmZmZmZ ddlmZ ddlmZ ddl	m
Z
m	Z	mZmZ ddlZddlZddlZdZz ddlZeedƒr‚ejr‚d	ZW n   Y n0 d
dlmZ d
dlmZmZmZmZmZmZmZmZ d
dlmZ d
dl m!Z! d
dl"m#Z# e $¡ Z%dZ&dZ'dZ(dZ)dZ*e+e,e-ee.e	e
eef	Z/e!eƒG dd„ de0ƒƒZ1e!eƒG dd„ de0ƒƒZ2dS )z*Module gathering all abstract base classesé    )ÚABCMetaÚabstractmethodÚabstractproperty)ÚDecimal)Úsleep)ÚdateÚdatetimeÚtimeÚ	timedeltaNFÚHAS_TLSv1_3Té   )ÚMySQLConverterBase)Ú
ClientFlagÚCharacterSetÚCONN_ATTRS_DNÚDEFAULT_CONFIGURATIONÚDEPRECATED_TLS_VERSIONSÚOPENSSL_CS_NAMESÚTLS_CIPHER_SUITESÚTLS_VERSIONS)ÚMySQLOptionsParser)Úmake_abc)ÚerrorszVThe '{list}' list must not contain repeated values, the value '{value}' is duplicated.zdThe given tls_version: '{}' is not recognized as a valid TLS protocol version (should be one of {}).zHThe given tls_version: '{}' are no longer allowed (should be one of {}).zINo supported TLS protocol version found in the 'tls-versions' list '{}'. a  Option "krb_service_principal" {error}, must be a string in the form "primary/instance@realm" e.g "ldap/ldapauth@MYSQL.COM" where "@realm" is optional and if it is not given will be assumed to belong to the default realm, as configured in the krb5.conf file.c                   @   s  e Zd ZdZdd„ Zdd„ Zdd„ Zdd	„ Zd
d„ Zdd„ Z	dd„ Z
edd„ ƒZedd„ ƒZedd„ ƒZedd„ ƒZedd„ ƒZejdd„ ƒZedd„ ƒZdd„ Zdd „ Zd!d"„ Zd#d$„ Zd%d&„ Zed'd(„ ƒZd)d*„ Zd+d,„ Zed-d.„ ƒZejd/d.„ ƒZed0d1„ ƒZejd2d1„ ƒZed3d4„ ƒZd™d6d7„Z dšd9d:„Z!ed;d<„ ƒZ"e"jd=d<„ ƒZ"ed>d?„ ƒZ#e#jd@d?„ ƒZ#edAdB„ ƒZ$e$jdCdB„ ƒZ$edDdE„ ƒZ%e%jdFdE„ ƒZ%edGdH„ ƒZ&edIdJ„ ƒZ'd›dKdL„Z(edMdN„ ƒZ)edOdP„ ƒZ*edQdR„ ƒZ+dSdT„ Z,edUdV„ ƒZ-e-Z.dWdX„ Z/dœd[d\„Z0ed]d^„ ƒZ1ed�d`da„ƒZ2edbdc„ ƒZ3edžddde„ƒZ4edfdg„ ƒZ5edhdi„ ƒZ6dŸdjdk„Z7d dldm„Z8dndo„ Z9ed¡dpdq„ƒZ:drds„ Z;d¢dtdu„Z<dvdw„ Z=dxdy„ Z>dzd{„ Z?d£d|d}„Z@d~d„ ZAd€d�„ ZBd‚dƒ„ ZCd„d…„ ZDd†d‡„ ZEd¤dŠd‹„ZFdŒd�„ ZGd¥d�d�„ZHd‘d’„ ZId“d”„ ZJd•d–„ ZKd—d˜„ ZLd5S )¦ÚMySQLConnectionAbstractz7Abstract class for classes connecting to a MySQL serverc                 K   s   t  ¡ | _d| _d| _d| _d| _d| _d| _i | _	d| _
d| _d| _d| _d| _d| _d| _d| _d| _d| _d| _i | _td | _d| _d| _d	| _d| _d| _td
 | _d| _d| _d| _ d| _!d| _"td | _#td | _$d| _%g | _&d| _'d| _(d| _)d| _*d| _+d| _,d| _-d| _.dS )Z
Initializeé-   NFÚ z	127.0.0.1iê  r   Ússl_disabledTÚconnect_timeoutÚallow_local_infileÚallow_local_infile_in_path)/r   Úget_defaultÚ_client_flagsÚ_charset_idÚ	_sql_modeÚ
_time_zoneÚ_autocommitÚ_server_versionÚ
_handshakeÚ_conn_attrsÚ_userÚ	_passwordZ
_password1Z
_password2Z
_password3Ú	_databaseÚ_hostÚ_portÚ_unix_socketZ_client_hostZ_client_portÚ_sslr   Ú_ssl_disabledZ_force_ipv6Z_oci_config_fileÚ_use_unicodeÚ_get_warningsÚ_raise_on_warningsZ_connection_timeoutZ	_bufferedÚ_unread_resultZ_have_next_resultÚ_rawZ_in_transactionÚ_allow_local_infileÚ_allow_local_infile_in_pathZ_prepared_statementsÚ_query_attrsZ_ssl_activeÚ_auth_pluginZ_pool_config_versionÚ	converterÚ_converter_classÚ_converter_str_fallbackÚ	_compressÚ_consume_results©ÚselfÚkwargs© rB   úV/home/httpd/docs/test/DocsMgr/lib/python3.9/site-packages/mysql/connector/abstracts.pyÚ__init__U   sZ    



ÿz MySQLConnectionAbstract.__init__c                 C   s   | S ©NrB   ©r@   rB   rB   rC   Ú	__enter__Š   s    z!MySQLConnectionAbstract.__enter__c                 C   s   |   ¡  d S rE   ©Úclose©r@   Úexc_typeÚ	exc_valueÚ	tracebackrB   rB   rC   Ú__exit__�   s    z MySQLConnectionAbstract.__exit__c                 C   s   | S )zˆReturn self for weakref.proxy

        This method is used when the original object is needed when using
        weakref.proxy.
        rB   rF   rB   rB   rC   Ú	_get_self�   s    z!MySQLConnectionAbstract._get_selfc           	   
   C   sœ  d|v �r˜z.t |d tƒr(|d g|d< |d }|d= W n tyR   ddg}Y n0 t |d tƒrp|d g|d< tt|d ƒdd�}|d= |j|Ž }i }|D ]¢}z„||  ¡ D ]r\}}z<|dkrÄd}t|  ||vsè|| d	 |d	 krð|||< W q® t�y   |dk�rtd
 	|¡ƒ‚Y q®0 q®W qœ t�y<   Y qœY qœ0 qœ| ¡ D ]N\}}||v�rHzt
|d ƒ||< W n$ ttf�y’   |d ||< Y n0 �qH|S )z¶
        Read option files for connection parameters.

        Checks if connection arguments contain option file arguments, and then
        reads option files accordingly.
        Úoption_filesÚoption_groupsÚclientZconnector_pythonF)Zkeep_dashesÚsocketÚunix_socketr   úUnsupported argument '{0}'r   )Ú
isinstanceÚstrÚKeyErrorr   ÚlistZ get_groups_as_dict_with_priorityÚitemsr   ÚAttributeErrorÚformatÚevalÚ	NameErrorÚSyntaxError)	r@   ÚconfigÚgroupsZoption_parserZconfig_from_fileZconfig_optionsÚgroupÚoptionÚvaluerB   rB   rC   Ú_read_option_files˜   sV    

ÿÿÿ
ÿ
z*MySQLConnectionAbstract._read_option_filesc                 C   sb  g }| j d }t|tƒr€| d¡r,| d¡s<td |¡ƒ‚qÌ|dd…  d¡}|sZtdƒ‚|D ]}| ¡  	¡ }|r^| 
|¡ q^nLt|tƒršd	d
„ |D ƒ}n2t|tƒr¾|D ]}|r¨| 
|¡ q¨ntd |¡ƒ‚| j  dd¡du rêtdd… n| j d dd… }|jdd� |d }g g g}i }g }	tdt |¡d … D ]"}
| t|
 ¡ |	 t|
 ¡ �q6|D ]¼}d|v �r¤||	v �r¤|td v �r”|d  
|¡ n|d  
|¡ nt||v �r
|| }||v �rÔttjd|d�ƒ‚n4|td v �rö|d  
|| ¡ n|d  
|| ¡ ntd |¡ƒ‚�q^|d �s8|d �s8tdƒ‚d |d ¡d |d ¡g}|| j d< dS )z/Validates the tls_ciphersuites option.
        Útls_ciphersuitesú[ú]z,tls_ciphersuites must be a list, found: '{}'r   éÿÿÿÿú,z7No valid cipher suite found in 'tls_ciphersuites' list.c                 S   s   g | ]}|r|‘qS rB   rB   )Ú.0Útls_csrB   rB   rC   Ú
<listcomp>ã   ó    zFMySQLConnectionAbstract._validate_tls_ciphersuites.<locals>.<listcomp>zLtls_ciphersuites should be a list with one or more ciphersuites. Found: '{}'Útls_versionsNT)Úreverser   ú-úTLSv1.3©rY   rd   z>The value '{}' in tls_ciphersuites is not a valid cipher suitez;No valid cipher suite found in the 'tls_ciphersuites' list.ú:)r/   rV   rW   Ú
startswithÚendswithr[   r\   ÚsplitÚstripÚupperÚappendrY   ÚsetÚgetr   ÚsortÚindexÚupdater   Úextendr   ÚDUPLICATED_IN_LIST_ERRORÚjoin)r@   rf   rl   Ztls_cssZ_tls_csro   Znewer_tls_verZtranslated_namesZiani_cipher_suites_namesZossl_cipher_suites_namesÚtls_verÚnameZtranslated_namerB   rB   rC   Ú_validate_tls_ciphersuitesÍ   sŽ    


ÿÿ

ÿÿÿÿ

ÿÿÿÿÿÿÿz2MySQLConnectionAbstract._validate_tls_ciphersuitesc                 C   sþ  g }| j d }t|tƒr°| d¡r,| d¡s<td |¡ƒ‚nr|dd…  d¡}|D ]<}| ¡ }|dkrjqRn||v r„tt	jd|d	�ƒ‚| 
|¡ qR|d
gkr®ts®tt |t¡ƒ‚n‚t|tƒrø|sÆtdƒ‚|D ]*}||v rêtt	jd|d	�ƒ‚qÊ| 
|¡ qÊn:t|tƒ�r|D ]}| 
|¡ �qntd d t¡|¡ƒ‚|�s@tdƒ‚g }g }g }|D ]:}|tv �rh| 
|¡ |tv �r~| 
|¡ n
| 
|¡ �qP|�rÊ|d
gk�r¶t�s¶t t |t¡¡‚| ¡  || j d< n0|�rät t |t¡¡‚n|�rútt |t¡ƒ‚dS )z+Validates the tls_versions option.
        ro   rg   rh   z(tls_versions must be a list, found: '{}'r   ri   rj   r   rs   rr   zKAt least one TLS protocol version must be specified in 'tls_versions' list.zMtls_versions should be a list with one or more of versions in {}. found: '{}'z, zeAt least one TLS protocol version must be specified in 'tls_versions' list when this option is given.N)r/   rV   rW   ru   rv   r[   r\   rw   rx   r�   rz   ÚTLS_V1_3_SUPPORTEDÚTLS_VER_NO_SUPPORTEDr   rY   r{   r‚   r   r   ÚNotSupportedErrorr}   ÚTLS_VERSION_DEPRECATED_ERRORÚTLS_VERSION_ERROR)r@   ro   Ztls_versionZtls_versrƒ   Zuse_tls_versionsZdeprecated_tls_versionsZinvalid_tls_versionsrB   rB   rC   Ú_validate_tls_versions  s”    

ÿÿÿ
ÿ
ÿÿÿ
ÿÿÿ



ÿÿÿ
ÿz.MySQLConnectionAbstract._validate_tls_versionsc                 C   s   | j S )z#User used while connecting to MySQL)r)   rF   rB   rB   rC   Úuseri  s    zMySQLConnectionAbstract.userc                 C   s   | j S )zMySQL server IP address or name)r,   rF   rB   rB   rC   Úserver_hostn  s    z#MySQLConnectionAbstract.server_hostc                 C   s   | j S )zMySQL server TCP/IP port)r-   rF   rB   rB   rC   Úserver_ports  s    z#MySQLConnectionAbstract.server_portc                 C   s   | j S )zMySQL Unix socket file location)r.   rF   rB   rB   rC   rT   x  s    z#MySQLConnectionAbstract.unix_socketc                 C   s   dS )zGet the current databaseNrB   rF   rB   rB   rC   Údatabase}  s    z MySQLConnectionAbstract.databasec                 C   s   |   d| ¡ dS )zSet the current databasezUSE %sN)Ú	cmd_query©r@   rd   rB   rB   rC   r�   ‚  s    c                 C   s   | j S )z"Returns whether to consume results)r>   rF   rB   rB   rC   Úcan_consume_results‡  s    z+MySQLConnectionAbstract.can_consume_resultsc              	   K   sª  |  ¡ }d|v rt d¡‚|  |¡ z|d | _|d= W n tyJ   Y n0 z|d | _|d= W n tyr   Y n0 z$t ¡ }|  	|d pŒ|¡ |d= W n tyª   Y n0 z |d rÊd| _
|  	tjg¡ W n tyÞ   Y n0 | dtd ¡| _| d	td	 ¡| _d
}| j�rVtj | j¡}|�r@tj |¡�r@tj |¡�rNtj |¡�rVtdƒ‚| j�sf| j�rv|  	tjg¡ n|  	tj g¡ z|d �sšd| _nd| _W n t�y¼   d| _Y n0 z|d | _|d= W n t�yì   d| _Y n0 d|v �sd|v �rlz|d }|d= W n t�y,   d
}Y n0 z|d }|d= W n t�yX   d
}Y n0 t ||¡d | _z|  |d ¡ W n. t�y’   Y n t�y¬   tdƒ‚Y n0 g d¢}|D ]@\}}	z |	|v�rÚ|| ||	< ||= W n t�yö   Y n0 �qºd|v �sd|v �rxz|d }
|d= W n t�y<   | j}
Y n0 z|d }|d= W n t�yj   | j }Y n0 |  !|
|¡ d|v �r–|d �r–|d | _"zt#|d ƒ| _$|d= W n0 t�yÂ   Y n t%�yÞ   t &d¡‚Y n0 d|v �rö| 'd¡| _(| j(�r| jdk�rt &d¡‚d}| )¡ D ]Ä\}}zt|  W n" t�yV   td *|¡ƒ‚Y n0 | +d¡�r‚d}| j, -| .dd¡|i¡ n`| +d ¡�r¤d}| j, -||i¡ n>d!| }zt/| || 0¡ ƒ W n  t�yà   t/| ||ƒ Y n0 �q |�r&d"| j,v�rtd# | j,d"< d$| j,v�r td% | j,d$< d&| j,v�s<| j,d& d
u �rFd| j,d&< t1d'| j,v ƒt1d(| j,v ƒk�rntd)ƒ‚nPt2d*ƒt2| j,ƒk�s˜d
| j,d'< d
| j,d(< n&| j,d' d
u | j,d( d
u k�r¾td+ƒ‚d,| j,v �rò| j,d, d
u�rò| j(�rêtd-ƒ‚|  3¡  d.| j,v �r&| j,d. d
u�r&| j(�rtd/ƒ‚|  4¡  | j5d
u �r:i | _5nØt6| j5t7ƒ�sTt &d0¡‚n¾| j5D ]¶}|t8v �rl�qZt6|t9ƒ�sŒt &d1 *|| j5¡¡‚t:|ƒd2k�rªt &d3 *|¡¡‚| +d!¡�rÆt &d4 *|¡¡‚| j5| }t6|t9ƒ�sît &d5 *||¡¡‚t:|ƒd6k�rZt &d7 *||¡¡‚�qZ| j;tj<@ �r(|  =¡  d8|v �r¦|d8 d
u�r¦|d8 | _>t6| j>t9ƒ�sjt &t?j*d9d:�¡‚| j>dk�rˆt &t?j*d;d:�¡‚d<| j>v�r¦t &t?j*d=d:�¡‚d
S )>z�Configure the MySQL Connection

        This method allows you to configure the MySQLConnection instance.

        Raises on errors.
        Zdsnz!Data source name is not supportedÚget_warningsÚraise_on_warningsZclient_flagsÚcompressTr   r   Nz.allow_local_infile_in_path must be a directoryZconsume_resultsFZauth_pluginr   ÚcharsetÚ	collationr   Zconverter_classúFConverter class should be a subclass of conversion.MySQLConverterBase.))Údbr�   )ÚusernamerŒ   )ÚpasswdÚpassword)r   Zconnection_timeout)Zread_default_filerP   rŒ   rœ   ÚhostÚportz'TCP/IP port number should be an integerr   Zmysql_clear_passwordzEClear password authentication is not supported over insecure channelsrU   Ússl_Ztls_Ú_Zverify_certZssl_verify_certZverify_identityZssl_verify_identityÚcaÚkeyÚcertz;ssl_key and ssl_cert need to be both specified, or neither.)r¢   r£   z5ssl_key and ssl_cert need to be both set, or neither.ro   z@The tls_versions option can not be used along with ssl_disabled.rf   zDThe tls_ciphersuites option can not be used along with ssl_disabled.z conn_attrs must be of type dict.z6Attribute name should be a string, found: '{}' in '{}'é    z5Attribute name '{}' exceeds 32 characters limit size.zEKey names in connection attributes cannot start with '_', found: '{}'z1Attribute '{}' value: '{}' must be a string type.i   z=Attribute '{}' value: '{}' exceeds 1024 characters limit sizeZkrb_service_principalzis not a string)Úerrorzcan not be an empty stringú/zis incorrectly formatted)@Úcopyr   rˆ   re   r“   rX   r”   r   r    Úset_client_flagsr=   ZCOMPRESSr|   r   r6   r7   ÚosÚpathÚabspathÚexistsÚisdirÚislinkr[   ZLOCAL_FILESr>   r9   r   Úget_charset_infor"   Úset_converter_classÚ	TypeErrorr)   r*   Ú	set_loginr,   Úintr-   Ú
ValueErrorÚInterfaceErrorÚpopr0   rZ   r\   ru   r/   r   ÚreplaceÚsetattrrx   Úboolr{   r‹   r…   r(   rV   Údictr   rW   Úlenr!   ZCONNECT_ARGSÚ_add_default_conn_attrsZ_krb_service_principalÚKRB_SERVICE_PINCIPAL_ERROR)r@   rA   r`   ÚdefaultZinfile_in_pathr–   r—   Z
compat_mapÚcompatÚ	translaterŒ   rœ   Zset_ssl_flagr¢   rd   Ú	attributeÚ	attr_nameÚ
attr_valuerB   rB   rC   r`   Œ  s°   






ÿþ
ÿ
þ







ÿÿ






ÿ


ÿÿ
ÿ
ÿÿ

ÿÿÿÿÿÿ
ÿÿÿÿ

ÿ
ÿÿÿzMySQLConnectionAbstract.configc                 C   s   dS )z&Add the default connection attributes.NrB   rF   rB   rB   rC   r¼   Ž  s    z/MySQLConnectionAbstract._add_default_conn_attrsc                 C   sr   t |ttfƒr| ¡ }t d¡}| |¡}|s8t d¡‚t	dd„ | 
¡ dd… D ƒƒ}|dk rnt d |¡¡‚|S )	a7  Check the MySQL version

        This method will check the MySQL version and raise an InterfaceError
        when it is not supported or invalid. It will return the version
        as a tuple with major, minor and patch.

        Raises InterfaceError if invalid server version.

        Returns tuple
        z$^(\d{1,2})\.(\d{1,2})\.(\d{1,3})(.*)zFailed parsing MySQL versionc                 S   s   g | ]}t |ƒ‘qS rB   )r³   )rk   ÚvrB   rB   rC   rm   §  rn   zAMySQLConnectionAbstract._check_server_version.<locals>.<listcomp>r   é   )é   r   z%MySQL Version '{0}' is not supported.)rV   Ú	bytearrayÚbytesÚdecodeÚreÚcompileÚmatchr   rµ   Útuplera   r\   )r@   Zserver_versionZ	regex_verrÌ   ÚversionrB   rB   rC   Ú_check_server_version’  s    


ÿz-MySQLConnectionAbstract._check_server_versionc                 C   s   | j S )z¼Get the MySQL version

        This method returns the MySQL server version as a tuple. If not
        previously connected, it will return None.

        Returns a tuple or None.
        )r&   rF   rB   rB   rC   Úget_server_version®  s    z*MySQLConnectionAbstract.get_server_versionc              	   C   s*   z| j d W S  ttfy$   Y dS 0 dS )zÐGet the original MySQL version information

        This method returns the original MySQL server as text. If not
        previously connected, it will return None.

        Returns a string or None.
        Zserver_version_originalN)r'   r±   rX   rF   rB   rB   rC   Úget_server_info¸  s    z'MySQLConnectionAbstract.get_server_infoc                 C   s   dS )z'MySQL session has started a transactionNrB   rF   rB   rB   rC   Úin_transactionÅ  s    z&MySQLConnectionAbstract.in_transactionc                 C   sp   t |tƒr|dkr|| _nPt |ttfƒr`|D ]0}|dk rN|  jt|ƒ M  _q,|  j|O  _q,n
t d¡‚| jS )a   Set the client flags

        The flags-argument can be either an int or a list (or tuple) of
        ClientFlag-values. If it is an integer, it will set client_flags
        to flags as is.
        If flags is a list (or tuple), each flag will be set or unset
        when it's negative.

        set_client_flags([ClientFlag.FOUND_ROWS,-ClientFlag.LONG_FLAG])

        Raises ProgrammingError when the flags argument is not a set or
        an integer bigger than 0.

        Returns self.client_flags
        r   z+set_client_flags expect integer (>0) or set)rV   r³   r!   rÍ   rY   Úabsr   ÚProgrammingError)r@   ÚflagsÚflagrB   rB   rC   r¨   Ê  s    ÿz(MySQLConnectionAbstract.set_client_flagsc                 C   s   | j |@ dkrdS dS )zCheck if a client flag is setr   TF)r!   )r@   rÖ   rB   rB   rC   Úisset_client_flagç  s    z)MySQLConnectionAbstract.isset_client_flagc                 C   s   |   d¡d S )zGet the current time zonezSELECT @@session.time_zoner   ©Ú
info_queryrF   rB   rB   rC   Ú	time_zoneí  s    z!MySQLConnectionAbstract.time_zonec                 C   s   |   d |¡¡ || _dS )zSet the time zonezSET @@session.time_zone = '{0}'N)r�   r\   r$   r‘   rB   rB   rC   rÚ   ò  s    c                 C   s   |   d¡d S )zGet the SQL modezSELECT @@session.sql_moder   rØ   rF   rB   rB   rC   Úsql_modeø  s    z MySQLConnectionAbstract.sql_modec                 C   s2   t |ttfƒrd |¡}|  d |¡¡ || _dS )a“  Set the SQL mode

        This method sets the SQL Mode for the current connection. The value
        argument can be either a string with comma separate mode names, or
        a sequence of mode names.

        It is good practice to use the constants class SQLMode:
          from mysql.connector.constants import SQLMode
          cnx.sql_mode = [SQLMode.NO_ZERO_DATE, SQLMode.REAL_AS_FLOAT]
        rj   zSET @@session.sql_mode = '{0}'N)rV   rY   rÍ   r‚   r�   r\   r#   r‘   rB   rB   rC   rÛ   ý  s    
c                 C   s   dS )z%Send a query which only returns 1 rowNrB   ©r@   ÚqueryrB   rB   rC   rÙ     s    z"MySQLConnectionAbstract.info_queryNc                 C   s4   |dur|  ¡ | _nd| _|dur*|| _nd| _dS )z‡Set login information for MySQL

        Set the username and/or password for the user connecting to
        the MySQL Server.
        Nr   )rx   r)   r*   )r@   rš   rœ   rB   rB   rC   r²     s    z!MySQLConnectionAbstract.set_loginTc                 C   s   || _ | jr| j |¡ dS )zuToggle unicode mode

        Set whether we return string fields as unicode or not.
        Default is True.
        N)r1   r:   Úset_unicoder‘   rB   rB   rC   rÞ   "  s    z#MySQLConnectionAbstract.set_unicodec                 C   s   |   d¡d }|dkrdS dS )z#Get whether autocommit is on or offzSELECT @@session.autocommitr   r   TFrØ   r‘   rB   rB   rC   Ú
autocommit,  s    z"MySQLConnectionAbstract.autocommitc                 C   s&   |rdnd}|   d |¡¡ || _dS )zToggle autocommitÚONZOFFzSET @@session.autocommit = {0}N)r�   r\   r%   )r@   rd   ÚswitchrB   rB   rC   rß   2  s    c                 C   s   | j S )zåGet whether this connection retrieves warnings automatically

        This method returns whether this connection retrieves warnings
        automatically.

        Returns True, or False when warnings are not retrieved.
        )r2   rF   rB   rB   rC   r“   9  s    	z$MySQLConnectionAbstract.get_warningsc                 C   s   t |tƒstdƒ‚|| _dS )zöSet whether warnings should be automatically retrieved

        The toggle-argument must be a boolean. When True, cursors for this
        connection will retrieve information about warnings (if any).

        Raises ValueError on error.
        úExpected a boolean typeN)rV   r¹   r´   r2   r‘   rB   rB   rC   r“   D  s    	
c                 C   s   | j S )zÌGet whether this connection raises an error on warnings

        This method returns whether this connection will raise errors when
        MySQL reports warnings.

        Returns True or False.
        )r3   rF   rB   rB   rC   r”   Q  s    	z)MySQLConnectionAbstract.raise_on_warningsc                 C   s"   t |tƒstdƒ‚|| _|| _dS )aœ  Set whether warnings raise an error

        The toggle-argument must be a boolean. When True, cursors for this
        connection will raise an error when MySQL reports warnings.

        Raising on warnings implies retrieving warnings automatically. In
        other words: warnings will be set to True. If set to False, warnings
        will be also set to False.

        Raises ValueError on error.
        râ   N)rV   r¹   r´   r3   r2   r‘   rB   rB   rC   r”   \  s    
c                 C   s   | j S )zæGet whether there is an unread result

        This method is used by cursors to check whether another cursor still
        needs to retrieve its result set.

        Returns True, or False when there is no unread result.
        )r4   rF   rB   rB   rC   Úunread_resulto  s    	z%MySQLConnectionAbstract.unread_resultc                 C   s   t |tƒstdƒ‚|| _dS )zÖSet whether there is an unread result

        This method is used by cursors to let other cursors know there is
        still a result set that needs to be retrieved.

        Raises ValueError on errors.
        râ   N)rV   r¹   r´   r4   r‘   rB   rB   rC   rã   z  s    	
c                 C   s   t  | j¡d S )a+  Returns the character set for current connection

        This property returns the character set name of the current connection.
        The server is queried when the connection is active. If not connected,
        the configured character set name is returned.

        Returns a string.
        r   ©r   Úget_infor"   rF   rB   rB   rC   r–   ‡  s    
zMySQLConnectionAbstract.charsetc                 C   s    t  | j¡d }|dv rdS |S )ay  Returns the Python character set for current connection

        This property returns the character set name of the current connection.
        Note that, unlike property charset, this checks if the previously set
        character set is supported by Python and if not, it returns the
        equivalent character set that Python supports.

        Returns a string.
        r   )Zutf8mb4ÚbinaryÚutf8rä   )r@   ÚencodingrB   rB   rC   Úpython_charset“  s    z&MySQLConnectionAbstract.python_charsetc                 C   s®   |rLt |tƒr"t |¡\| _}}qdt |tƒrBt ||¡\| _}}qdtdƒ‚n|rdtj|d�\| _}}|  d ||¡¡ z|  	|¡ W n t
y–   Y n0 | jrª| j |¡ dS )aV  Sets the character set and collation for the current connection

        This method sets the character set and collation to be used for
        the current connection. The charset argument can be either the
        name of a character set as a string, or the numerical equivalent
        as defined in constants.CharacterSet.

        When the collation is not given, the default will be looked up and
        used.

        For example, the following will set the collation for the latin1
        character set to latin1_general_ci:

           set_charset('latin1','latin1_general_ci')

        z0charset should be either integer, string or None)r—   zSET NAMES '{0}' COLLATE '{1}'N)rV   r³   r   r¯   r"   rW   r´   Ú_execute_queryr\   Zset_character_set_namer[   r:   Úset_charset)r@   r–   r—   Úcharset_nameZcollation_namerB   rB   rC   Úset_charset_collation£  s,    
ÿ

ÿÿ
ÿ
ÿz-MySQLConnectionAbstract.set_charset_collationc                 C   s   t  | j¡d S )a  Returns the collation for current connection

        This property returns the collation name of the current connection.
        The server is queried when the connection is active. If not connected,
        the configured collation name is returned.

        Returns a string.
        é   )r   r¯   r"   rF   rB   rB   rC   r—   Ï  s    
z!MySQLConnectionAbstract.collationc                 C   s   dS )z<Gather information of the MySQL server before authenticationNrB   rF   rB   rB   rC   Ú_do_handshakeÛ  s    z%MySQLConnectionAbstract._do_handshakec                 C   s   dS )z'Open the connection to the MySQL serverNrB   rF   rB   rB   rC   Ú_open_connectionà  s    z(MySQLConnectionAbstract._open_connectionc                 C   s4   |   | j¡ | j| _| jr"| j| _| jr0| j| _dS )z÷Executes commands after connection has been established

        This method executes commands after the connection has been
        established. Some setting like autocommit, character set, and SQL mode
        are set using this method.
        N)rí   r"   r%   rß   r$   rÚ   r#   rÛ   rF   rB   rB   rC   Ú_post_connectionå  s    z(MySQLConnectionAbstract._post_connectionc                 C   s   dS )z Disconnect from the MySQL serverNrB   rF   rB   rB   rC   Ú
disconnectó  s    z"MySQLConnectionAbstract.disconnectc                 K   s<   |r| j f i |¤Ž |  ¡  |  ¡  | jtj@ s8|  ¡  dS )zÆConnect to the MySQL server

        This method sets up the connection to the MySQL server. If no
        arguments are given, it will use the already configured or default
        values.
        N)r`   rò   rð   r!   r   ZCAN_HANDLE_EXPIRED_PASSWORDSrñ   r?   rB   rB   rC   Úconnectù  s    zMySQLConnectionAbstract.connectr   r   c              
   C   s’   d}||krŽ|d }z |   ¡  |  ¡  |  ¡ r2W qŽW nF tyz } z.||krfd |t|ƒ¡}t |¡‚W Y d}~n
d}~0 0 |dkrt|ƒ qdS )a×  Attempt to reconnect to the MySQL server

        The argument attempts should be the number of times a reconnect
        is tried. The delay argument is the number of seconds to wait between
        each retry.

        You may want to set the number of attempts higher and use delay when
        you expect the MySQL server to be down for maintenance or when you
        expect the network to be temporary unavailable.

        Raises InterfaceError on errors.
        r   r   z4Can not reconnect to MySQL after {0} attempt(s): {1}N)	rò   ró   Úis_connectedÚ	Exceptionr\   rW   r   rµ   r   )r@   ÚattemptsÚdelayÚcounterÚerrÚmsgrB   rB   rC   Ú	reconnect
  s     ÿ z!MySQLConnectionAbstract.reconnectc                 C   s   dS )z;Reports whether the connection to MySQL Server is availableNrB   rF   rB   rB   rC   rô   '  s    z$MySQLConnectionAbstract.is_connectedFc                 C   s   dS )z&Check availability of the MySQL serverNrB   )r@   rû   rö   r÷   rB   rB   rC   Úping,  s    zMySQLConnectionAbstract.pingc                 C   s   dS )zCommit current transactionNrB   rF   rB   rB   rC   Úcommit1  s    zMySQLConnectionAbstract.commitc                 C   s   dS )z!Instantiates and returns a cursorNrB   )r@   ÚbufferedÚrawÚpreparedZcursor_classÚ
dictionaryZnamed_tuplerB   rB   rC   Úcursor6  s    zMySQLConnectionAbstract.cursorc                 C   s   dS )zExecute a queryNrB   rÜ   rB   rB   rC   rê   <  s    z&MySQLConnectionAbstract._execute_queryc                 C   s   dS )zRollback current transactionNrB   rF   rB   rB   rC   ÚrollbackA  s    z MySQLConnectionAbstract.rollbackc                 C   s´   | j rt d¡‚|rV| ¡  dd¡ ¡ }g d¢}||vrFtd |¡ƒ‚|  d |¡¡ |dur–| j	dk rxtd	 | j	¡ƒ‚|r‚d
}nd}|  d |¡¡ d}|r¦|d7 }|  
|¡ dS )aÒ  Start a transaction

        This method explicitly starts a transaction sending the
        START TRANSACTION statement to the MySQL server. You can optionally
        set whether there should be a consistent snapshot, which
        isolation level you need or which access mode i.e. READ ONLY or
        READ WRITE.

        For example, to start a transaction with isolation level SERIALIZABLE,
        you would do the following:
            >>> cnx = mysql.connector.connect(..)
            >>> cnx.start_transaction(isolation_level='SERIALIZABLE')

        Raises ProgrammingError when a transaction is already in progress
        and when ValueError when isolation_level specifies an Unknown
        level.
        zTransaction already in progressrq   ú )zREAD UNCOMMITTEDzREAD COMMITTEDzREPEATABLE READZSERIALIZABLEzUnknown isolation level "{0}"z#SET TRANSACTION ISOLATION LEVEL {0}N)é   é   r  z6MySQL server version {0} does not support this featurez	READ ONLYz
READ WRITEzSET TRANSACTION {0}zSTART TRANSACTIONz WITH CONSISTENT SNAPSHOT)rÒ   r   rÔ   rx   r·   ry   r´   r\   rê   r&   r�   )r@   Zconsistent_snapshotZisolation_levelÚreadonlyÚlevelZlevelsZaccess_moderÝ   rB   rB   rC   Ústart_transactionF  s:    
ÿÿ
ÿÿÿz)MySQLConnectionAbstract.start_transactionc              	   C   sÒ   |   ¡ st d¡‚z|  ¡  W nB tjtfy`   | jrDt d¡‚n|  | j| j	| j
| j¡ Y n0 |sj|rÎ|  ¡ }|rœ| ¡ D ]\}}| d |¡|f¡ q~|rÆ| ¡ D ]\}}| d |¡|f¡ q¨| ¡  dS )aÇ  Clears the current active session

        This method resets the session state, if the MySQL server is 5.7.3
        or later active session will be reset without re-authenticating.
        For other server versions session will be reset by re-authenticating.

        It is possible to provide a sequence of variables and their values to
        be set after clearing the session. This is possible for both user
        defined variables and session variables.
        This method takes two arguments user_variables and session_variables
        which are dictionaries.

        Raises OperationalError if not connected, InternalError if there are
        unread results and InterfaceError on errors.
        zMySQL Connection not available.zZReset session is not supported with compression for MySQL server version 5.7.2 or earlier.zSET @`{0}` = %szSET SESSION `{0}` = %sN)rô   r   ZOperationalErrorÚcmd_reset_connectionrˆ   ÚNotImplementedErrorr=   Úcmd_change_userr)   r*   r+   r"   r  rZ   Úexecuter\   rI   )r@   Zuser_variablesZsession_variablesÚcurr¢   rd   rB   rB   rC   Úreset_sessionz  s*    
ÿÿ
z%MySQLConnectionAbstract.reset_sessionc                 C   sJ   |r>t |tƒr>t | j¡d }|| _||| jƒ| _| j| j_	nt
dƒ‚dS )z’
        Set the converter class to be used. This should be a class overloading
        methods and members of conversion.MySQLConverter.
        r   r˜   N)Ú
issubclassr   r   rå   r"   r;   r1   r:   r<   Zstr_fallbackr±   )r@   Z	convclassrì   rB   rB   rC   r°   ¢  s    z+MySQLConnectionAbstract.set_converter_classc                 C   s   dS )z)Get all rows returned by the MySQL serverNrB   )r@   Úcountræ   Úcolumnsrÿ   Z	prep_stmtrB   rB   rC   Úget_rows°  s    z MySQLConnectionAbstract.get_rowsc                 C   s   t ‚dS )zChange the current databaseN©r  )r@   r�   rB   rB   rC   Úcmd_init_db¶  s    z#MySQLConnectionAbstract.cmd_init_dbc                 C   s   t ‚dS )z Send a query to the MySQL serverNr  )r@   rÝ   rÿ   rþ   Zraw_as_stringrB   rB   rC   r�   º  s    z!MySQLConnectionAbstract.cmd_queryc                 C   s   t ‚dS )z/Send one or more statements to the MySQL serverNr  )r@   Z
statementsrB   rB   rC   Úcmd_query_iter¾  s    z&MySQLConnectionAbstract.cmd_query_iterc                 C   s   t ‚dS )z,Send the Refresh command to the MySQL serverNr  )r@   ÚoptionsrB   rB   rC   Úcmd_refreshÂ  s    z#MySQLConnectionAbstract.cmd_refreshc                 C   s   t ‚dS )z,Close the current connection with the serverNr  rF   rB   rB   rC   Úcmd_quitÆ  s    z MySQLConnectionAbstract.cmd_quitc                 C   s   t ‚dS )zShut down the MySQL ServerNr  )r@   Zshutdown_typerB   rB   rC   Úcmd_shutdownÊ  s    z$MySQLConnectionAbstract.cmd_shutdownc                 C   s   t ‚dS )z/Send the statistics command to the MySQL ServerNr  rF   rB   rB   rC   Úcmd_statisticsÎ  s    z&MySQLConnectionAbstract.cmd_statisticsc                 C   s   t  d¡‚dS )ak  Get the process list of the MySQL Server

        This method is a placeholder to notify that the PROCESS_INFO command
        is not supported by raising the NotSupportedError. The command
        "SHOW PROCESSLIST" should be send using the cmd_query()-method or
        using the INFORMATION_SCHEMA database.

        Raises NotSupportedError exception
        z;Not implemented. Use SHOW PROCESSLIST or INFORMATION_SCHEMAN)r   rˆ   rF   rB   rB   rC   Úcmd_process_infoÒ  s    
ÿz(MySQLConnectionAbstract.cmd_process_infoc                 C   s   t ‚dS )zKill a MySQL processNr  )r@   Z	mysql_pidrB   rB   rC   Úcmd_process_killß  s    z(MySQLConnectionAbstract.cmd_process_killc                 C   s   t ‚dS )zSend the DEBUG commandNr  rF   rB   rB   rC   Ú	cmd_debugã  s    z!MySQLConnectionAbstract.cmd_debugc                 C   s   t ‚dS )zSend the PING commandNr  rF   rB   rB   rC   Úcmd_pingç  s    z MySQLConnectionAbstract.cmd_pingr   r   c                 C   s   t ‚dS )z!Change the current logged in userNr  )r@   rš   rœ   r�   r–   Z	password1Z	password2Z	password3rB   rB   rC   r  ë  s    z'MySQLConnectionAbstract.cmd_change_userc                 C   s   t ‚dS )zPrepare a MySQL statementNr  )r@   Z	statementrB   rB   rC   Úcmd_stmt_prepareð  s    z(MySQLConnectionAbstract.cmd_stmt_preparerB   c                 C   s   t ‚dS )z"Execute a prepared MySQL statementNr  )r@   Ústatement_idÚdataÚ
parametersrÕ   rB   rB   rC   Úcmd_stmt_executeô  s    z(MySQLConnectionAbstract.cmd_stmt_executec                 C   s   t ‚dS )z%Deallocate a prepared MySQL statementNr  ©r@   r!  rB   rB   rC   Úcmd_stmt_closeø  s    z&MySQLConnectionAbstract.cmd_stmt_closec                 C   s   t ‚dS )zSend data for a columnNr  )r@   r!  Zparam_idr"  rB   rB   rC   Úcmd_stmt_send_long_dataü  s    z/MySQLConnectionAbstract.cmd_stmt_send_long_datac                 C   s   t ‚dS )z3Reset data for prepared statement sent as long dataNr  r%  rB   rB   rC   Úcmd_stmt_reset   s    z&MySQLConnectionAbstract.cmd_stmt_resetc                 C   s   t ‚dS )z2Resets the session state without re-authenticatingNr  rF   rB   rB   rC   r
    s    z,MySQLConnectionAbstract.cmd_reset_connection)NN)T)NN)r   r   )Fr   r   )NNNNNN)FNN)NN)NFNNN)FFF)N)r   r   r   r   r   r   r   )rB   rB   r   )MÚ__name__Ú
__module__Ú__qualname__Ú__doc__rD   rG   rN   rO   re   r…   r‹   ÚpropertyrŒ   r�   rŽ   rT   r   r�   Úsetterr’   r`   r¼   rÏ   rÐ   rÑ   rÒ   r¨   r×   rÚ   rÛ   r   rÙ   r²   rÞ   rß   r“   r”   rã   r–   ré   rí   r—   rï   rð   rñ   rò   rI   ró   rû   rô   rü   rý   r  rê   r  r	  r  r°   r  r  r�   r  r  r  r  r  r  r  r  r  r  r   r$  r&  r'  r(  r
  rB   rB   rB   rC   r   P   sò   55RJ






  























,






  ÿ

  ÿ
4
(  ÿ

  ÿ

r   c                   @   sê   e Zd ZdZdd„ Zdd„ Zdd„ Zed1d	d
„ƒZedd„ ƒZ	ed2dd„ƒZ
edd„ ƒZedd„ ƒZed3dd„ƒZedd„ ƒZdd„ Zdd„ Zd4dd„Zd5d!d"„Zed#d$„ ƒZed%d&„ ƒZed'd(„ ƒZd)d*„ Zd+d,„ Zd-d.„ Zd/d0„ ZdS )6ÚMySQLCursorAbstractz˜Abstract cursor class

    Abstract class defining cursor class with method and members
    required by the Python Database API Specification v2.0.
    c                 C   s"   d| _ d| _d| _d| _d| _dS )ZInitializationNri   r   )Ú_descriptionÚ	_rowcountÚ_last_insert_idÚ	_warningsZ	arraysizerF   rB   rB   rC   rD     s
    zMySQLCursorAbstract.__init__c                 C   s   | S rE   rB   rF   rB   rB   rC   rG     s    zMySQLCursorAbstract.__enter__c                 C   s   |   ¡  d S rE   rH   rJ   rB   rB   rC   rN     s    zMySQLCursorAbstract.__exit__rB   c                 C   s   dS )a  Calls a stored procedure with the given arguments

        The arguments will be set during this session, meaning
        they will be called like  _<procname>__arg<nr> where
        <nr> is an enumeration (+1) of the arguments.

        Coding Example:
          1) Defining the Stored Routine in MySQL:
          CREATE PROCEDURE multiply(IN pFac1 INT, IN pFac2 INT, OUT pProd INT)
          BEGIN
            SET pProd := pFac1 * pFac2;
          END

          2) Executing in Python:
          args = (5,5,0) # 0 is to hold pprod
          cursor.callproc('multiply', args)
          print(cursor.fetchone())

        Does not return a value, but a result set will be
        available when the CALL-statement execute successfully.
        Raises exceptions when something is wrong.
        NrB   )r@   ZprocnameÚargsrB   rB   rC   Úcallproc  s    zMySQLCursorAbstract.callprocc                 C   s   dS )zClose the cursor.NrB   rF   rB   rB   rC   rI   8  s    zMySQLCursorAbstract.closeFc                 C   s   dS )a”  Executes the given operation

        Executes the given operation substituting any markers with
        the given parameters.

        For example, getting all rows where id is 5:
          cursor.execute("SELECT * FROM t1 WHERE id = %s", (5,))

        The multi argument should be set to True when executing multiple
        statements in one operation. If not set and multiple results are
        found, an InterfaceError will be raised.

        If warnings where generated, and connection.get_warnings is True, then
        self._warnings will be a list containing these warnings.

        Returns an iterator when multi is True, otherwise None.
        NrB   )r@   Ú	operationÚparamsZmultirB   rB   rC   r  =  s    zMySQLCursorAbstract.executec                 C   s   dS )aÇ  Execute the given operation multiple times

        The executemany() method will execute the operation iterating
        over the list of parameters in seq_params.

        Example: Inserting 3 new employees and their phone number

        data = [
            ('Jane','555-001'),
            ('Joe', '555-001'),
            ('John', '555-003')
            ]
        stmt = "INSERT INTO employees (name, phone) VALUES ('%s','%s')"
        cursor.executemany(stmt, data)

        INSERT statements are optimized by batching the data, that is
        using the MySQL multiple rows syntax.

        Results are discarded. If they are needed, consider looping over
        data using the execute() method.
        NrB   )r@   r6  Z
seq_paramsrB   rB   rC   ÚexecutemanyR  s    zMySQLCursorAbstract.executemanyc                 C   s   dS )zQReturns next row of a query result set

        Returns a tuple or None.
        NrB   rF   rB   rB   rC   Úfetchonek  s    zMySQLCursorAbstract.fetchoner   c                 C   s   dS )a  Returns the next set of rows of a query result, returning a
        list of tuples. When no more rows are available, it returns an
        empty list.

        The number of rows returned can be specified using the size argument,
        which defaults to one
        NrB   )r@   ÚsizerB   rB   rC   Ú	fetchmanys  s    	zMySQLCursorAbstract.fetchmanyc                 C   s   dS )zRReturns all rows of a query result set

        Returns a list of tuples.
        NrB   rF   rB   rB   rC   Úfetchall~  s    zMySQLCursorAbstract.fetchallc                 C   s   dS ©zNot Implemented.NrB   rF   rB   rB   rC   Únextset†  s    zMySQLCursorAbstract.nextsetc                 C   s   dS r=  rB   )r@   ÚsizesrB   rB   rC   ÚsetinputsizesŠ  s    z!MySQLCursorAbstract.setinputsizesNc                 C   s   dS r=  rB   )r@   r:  ÚcolumnrB   rB   rC   ÚsetoutputsizeŽ  s    z!MySQLCursorAbstract.setoutputsizeTc                 C   s   dS )zReset the cursor to defaultNrB   )r@   ÚfreerB   rB   rC   Úreset’  s    zMySQLCursorAbstract.resetc                 C   s   | j S )aÃ  Returns description of columns in a result

        This property returns a list of tuples describing the columns in
        in a result set. A tuple is described as follows::

                (column_name,
                 type,
                 None,
                 None,
                 None,
                 None,
                 null_ok,
                 column_flags)  # Addition to PEP-249 specs

        Returns a list of tuples.
        )r0  rF   rB   rB   rC   Údescription–  s    zMySQLCursorAbstract.descriptionc                 C   s   | j S )a   Returns the number of rows produced or affected

        This property returns the number of rows produced by queries
        such as a SELECT, or affected rows when executing DML statements
        like INSERT or UPDATE.

        Note that for non-buffered cursors it is impossible to know the
        number of rows produced before having fetched them all. For those,
        the number of rows will be -1 right after execution, and
        incremented when fetching rows.

        Returns an integer.
        )r1  rF   rB   rB   rC   Úrowcountª  s    zMySQLCursorAbstract.rowcountc                 C   s   | j S )a  Returns the value generated for an AUTO_INCREMENT column

        Returns the value generated for an AUTO_INCREMENT column by
        the previous INSERT or UPDATE statement or None when there is
        no such value available.

        Returns a long value or None.
        )r2  rF   rB   rB   rC   Ú	lastrowid»  s    
zMySQLCursorAbstract.lastrowidc                 C   s   | j S )zReturns Warnings.)r3  rF   rB   rB   rC   ÚfetchwarningsÇ  s    z!MySQLCursorAbstract.fetchwarningsc                 C   s(   t | dƒr| jjS t | dƒr$| jjS dS )z&Get the added query attributes so far.Ú_cnxÚ_connectionN©ÚhasattrrI  r8   rJ  rF   rB   rB   rC   Úget_attributesË  s    

z"MySQLCursorAbstract.get_attributesc                 C   sv   t |tƒst d¡‚|dur8t |tƒs8t d|› d�¡‚t| dƒrV| jj ||f¡ nt| dƒrr| j	j ||f¡ dS )z$Add a query attribute and his value.z'Parameter `name` must be a string type.NzObject z% cannot be converted to a MySQL type.rI  rJ  )
rV   rW   r   rÔ   ÚMYSQL_PY_TYPESrL  rI  r8   rz   rJ  )r@   r„   rd   rB   rB   rC   Úadd_attributeÒ  s    
ÿ
ÿ

z!MySQLCursorAbstract.add_attributec                 C   s*   t | dƒrg | j_nt | dƒr&g | j_dS )z Remove all the query attributes.rI  rJ  NrK  rF   rB   rB   rC   Úclear_attributesß  s    


z$MySQLCursorAbstract.clear_attributes)rB   )rB   F)r   )N)T)r)  r*  r+  r,  rD   rG   rN   r   r5  rI   r  r8  r9  r;  r<  r>  r@  rB  rD  r   rE  rF  rG  rH  rM  rO  rP  rB   rB   rB   rC   r/  	  s@   









r/  )3r,  Úabcr   r   r   Údecimalr   r	   r   r   r   r
   r©   rÊ   Úweakrefr†   ÚsslrL  r   Ú
conversionr   Ú	constantsr   r   r   r   r   r   r   r   Zoptionfilesr   Úutilsr   r   r   ÚWeakValueDictionaryZNAMED_TUPLE_CACHEr�   rŠ   r‰   r‡   r½   r³   rW   rÈ   ÚfloatrN  Úobjectr   r/  rB   rB   rB   rC   Ú<module>   sT   (ÿÿÿ         A