§
    Þa{c’S  ã                   ó  — d Z ddlmZmZmZ ddlZddlZddlZddlm	Z	 ddlm
Z
 dgZg Z G d„ de¦  «        Zd	„ Zd
„ Zd„ ZeZ G d„ de¦  «        Z edef eej        ¦  «        ¦  «        Zd„ Z G d„ de¦  «        Z G d„ de¦  «        Z G d„ de¦  «        Z G d„ de¦  «        Z G d„ de¦  «        Z G d„ de¦  «        Z G d„ de¦  «        Z G d„ dee¦  «        Z G d„ d ee¦  «        Z  G d!„ d"ee¦  «        Z! G d#„ d$ee¦  «        Z" G d%„ d&ee¦  «        Z# G d'„ d(e¦  «        Z$ G d)„ d*ee¦  «        Z% G d+„ d,ee¦  «        Z& G d-„ d.ee¦  «        Z' G d/„ d0ee¦  «        Z( G d1„ d2ee¦  «        Z) G d3„ d4ee¦  «        Z* G d5„ d6ee¦  «        Z+ G d7„ d8ee¦  «        Z, G d9„ d:e¦  «        Z- G d;„ d<e-e¦  «        Z. G d=„ d>e-e¦  «        Z/ G d?„ d@e-e¦  «        Z0 G dA„ dBe-e¦  «        Z1 G dC„ dDe-e¦  «        Z2 G dE„ dFe-e¦  «        Z3 G dG„ dHe-e¦  «        Z4 G dI„ dJe-e¦  «        Z5 G dK„ dLee-e¦  «        Z6 e¦   «         Z7	  e"¦   «          8                    ¦   «          n# e9$ r Y nw xY we:dMk    re7 ;                    ¦   «          dS dS )Nak  
gevent tunables.

This should be used as ``from gevent import config``. That variable
is an object of :class:`Config`.

.. versionadded:: 1.3a2

.. versionchanged:: 22.08.0
   Invoking this module like ``python -m gevent._config`` will
   print a help message about available configuration properties.
   This is handy to quickly look for environment variables.
é    )Úprint_functionÚabsolute_importÚdivisionN)Ústring_types)ÚWINÚconfigc                   ó   — e Zd Zd„ Zd„ ZdS )ÚSettingTypec                 ój  ‡— |dk    rt                                | |||¦  «        S t          t          ¦  «        |d<   d|vr|                     ¦   «         |d<   d|vr d|d                              ¦   «         z   |d<   t                                | |||¦  «        }|                     |                     dd¦  «        ¦  «         |j        |_	        t           
                    |¦  «         |j        rE|d         Šˆfd„}ˆfd	„}t          |||j	        ¬
¦  «        }t          t          |d         |¦  «         |S )NÚSettingÚorderÚnameÚenvironment_keyÚGEVENT_ÚdescÚ c                 óB   •— | j         ‰                              ¦   «         S ©N)ÚsettingsÚget)ÚselfÚsetting_names    €ú0/usr/lib/python3/dist-packages/gevent/_config.pyÚgetterz#SettingType.__new__.<locals>.getter6   s   ø€ Ø”} \Ô2×6Ò6Ñ8Ô8Ð8ó    c                 óH   •— | j         ‰                              |¦  «         d S r   )r   Úset)r   Úvaluer   s     €r   Úsetterz#SettingType.__new__.<locals>.setter9   s&   ø€ ð ”˜lÔ+×/Ò/°Ñ6Ô6Ð6Ð6Ð6r   )Údoc)ÚtypeÚ__new__ÚlenÚALL_SETTINGSÚlowerÚupperÚfmt_descr   r   Ú__doc__ÚappendÚdocumentÚpropertyÚsetattrÚConfig)	Úclsr   ÚbasesÚcls_dictÚ	new_classr   r   Úpropr   s	           @r   r"   zSettingType.__new__"   sW  ø€ Ø�9ÒÐÝ—<’<  T¨5°(Ñ;Ô;Ð;å¥Ñ-Ô-ˆ�ÑØ˜Ð!Ð!Ø#Ÿzšz™|œ|ˆH�VÑà HÐ,Ð,Ø*3°h¸vÔ6F×6LÒ6LÑ6NÔ6NÑ*NˆHÐ&Ñ'õ —L’L  d¨E°8Ñ<Ô<ˆ	Ø×Ò˜8Ÿ<š<¨°Ñ3Ô3Ñ4Ô4Ð4Ø%œNˆ	ÔÝ×Ò˜IÑ&Ô&Ð&àÔð 	4Ø# FÔ+ˆLð9ð 9ð 9ð 9ð 9ð7ð 7ð 7ð 7ð 7õ ˜F F°	Ô0AÐBÑBÔBˆDå•F˜H VÔ,¨dÑ3Ô3Ð3ØÐr   c                 ó$  — t          j        |¦  «                             ¦   «         }t          | d¦  «        r&|dz  }| j        r|dt          | j        ¦  «        ›�z  }t          | j        d¦  «        r6|dt          j        | j        j        ¦  «                             ¦   «         z   z  }t          | j
        t          ¦  «        rt          | d¦  «        rd| j
        ›d�}nd| j
        ›d�}|d|›�z  }|d| j        ›d	�z  }t          | d
|¦  «         |S )NÚshortname_mapa5  

This is an importable value. It can be given as a string naming an importable object, or a list of strings in preference order and the first successfully importable object will be used. (Separate values in the environment variable with commas.) It can also be given as the callable object itself (in code). z(Shorthand names for default objects are r(   z

ú`z

The default value is z

The environment variable ``z`` can be used to control this.r   )ÚtextwrapÚdedentÚstripÚhasattrr4   ÚlistÚgetattrÚvalidater(   Ú
isinstanceÚdefaultÚstrr   r,   )r.   r   r>   s      r   r'   zSettingType.fmt_descD   s:  € ÝŒ˜tÑ$Ô$×*Ò*Ñ,Ô,ˆÝ�3˜Ñ(Ô(ð 
	bØðQñˆDð Ô ð bØ�ÍÈSÔM^ÑH_ÔH_ÐH_ÐaÑa�Ý�3”< Ñ+Ô+ð 	KØ�F�Xœ_¨S¬\Ô-AÑBÔB×HÒHÑJÔJÑJÑJˆDÝ�c”k¥3Ñ'Ô'ð 	.­G°C¸Ñ,IÔ,Ið 	.ð 	.Ø #¤  Ð-ˆGˆGøà #¤  Ð-ˆGØˆ°°Ð:Ñ:ˆØˆØ36Ô3FÐ3FÐ3FðIñ 	Jˆå��V˜TÑ"Ô"Ð"Øˆr   N)Ú__name__Ú
__module__Ú__qualname__r"   r'   © r   r   r
   r
      s3   € € € € € ð ð  ð  ðDð ð ð ð r   r
   c                 ó&   — t          d| ›�¦  «        ‚)NzNot a valid value: ©Ú
ValueError©r   s    r   Úvalidate_invalidrH   ]   s   € Ý
ˆ*°°Ð7Ñ
8Ô
8Ð8r   c                 óÚ   — t          | t          ¦  «        rH|                      ¦   «                              ¦   «         } | dv rd} n| dv s| sd} nt	          d| ›�¦  «        ‚t          | ¦  «        S )zÃ
    This is a boolean value.

    In the environment variable, it may be given as ``1``, ``true``,
    ``on`` or ``yes`` for `True`, or ``0``, ``false``, ``off``, or
    ``no`` for `False`.
    )Ú1ÚtrueÚonÚyesT)Ú0ÚfalseÚoffÚnoFzInvalid boolean string: )r=   r   r%   r8   rF   ÚboolrG   s    r   Úvalidate_boolrS   `   s|   € õ �%�Ñ&Ô&ð FØ—’‘”×#Ò#Ñ%Ô%ˆØÐ.Ð.Ð.ØˆEˆEØÐ1Ð1Ð1¸Ð1ØˆEˆEå�*¸U¸UÐDÑEÔEÐEÝ�‰;Œ;Ðr   c                 ó   — | S r   rC   rG   s    r   Úvalidate_anythingrU   r   s   € Ø€Lr   c                   óT   — e Zd ZdZdZ ee¦  «        ZdZdZ	dZ
dZd„ Zd„ Zd„ Zd„ ZdS )r   NTzT
    A long ReST description.

    The first line should be a single sentence.

    c                 óZ   — t          |t          ¦  «        r|                     d¦  «        S |S )Nú,)r=   r   Úsplit©r   r   s     r   Ú_convertzSetting._convert‡   s+   € Ý�e�\Ñ*Ô*ð 	$Ø—;’;˜sÑ#Ô#Ð#Øˆr   c                 ó„   — t           j                             | j        | j        ¦  «        }|                      |¦  «        }|S r   )ÚosÚenvironr   r   r>   r[   )r   Úresults     r   Ú_defaultzSetting._defaultŒ   s2   € Ý”—’ Ô 4°d´lÑCÔCˆØ—’˜vÑ&Ô&ˆØˆr   c                 óˆ   — d| j         v r| j        S |                      |                      ¦   «         ¦  «        | _        | j        S )Nr   )Ú__dict__r   r<   r`   ©r   s    r   r   zSetting.get‘   s<   € à�d”mÐ#Ð#Ø”:Ðð —]’] 4§=¢=¡?¤?Ñ3Ô3ˆŒ
ØŒzÐr   c                 ó`   — |                       |                      |¦  «        ¦  «        | _        d S r   )r<   r[   r   )r   Úvals     r   r   zSetting.setš   s%   € Ø—]’] 4§=¢=°Ñ#5Ô#5Ñ6Ô6ˆŒ
ˆ
ˆ
r   )r@   rA   rB   r   r   ÚstaticmethodrH   r<   r>   r   r*   r   r[   r`   r   r   rC   r   r   r   r   w   s€   € € € € € Ø€DØ€EØˆ|Ð,Ñ-Ô-€HØ€GØ€OØ€Hð€Dðð ð ð
ð ð ð
ð ð ð7ð 7ð 7ð 7ð 7r   r   c                  ó\   — i } t           D ]!} |¦   «         }|j        | vsJ ‚|| |j        <   Œ"| S )zJ
    Return fresh instances of all classes defined in `ALL_SETTINGS`.
    )r$   r   )r   Úsetting_kindÚsettings      r   Úmake_settingsrj       sJ   € ð €HÝ$ð )ð )ˆØ�,‘.”.ˆØŒ| 8Ð+Ð+Ð+Ð+Ø!(ˆ�”ÑÐØ€Or   c                   ó@   ‡ — e Zd ZdZd„ Zd„ Zˆ fd„Zd„ Zd„ Zd„ Z	ˆ xZ
S )r-   a"  
    Global configuration for gevent.

    There is one instance of this object at ``gevent.config``. If you
    are going to make changes in code, instead of using the documented
    environment variables, you need to make the changes before using
    any parts of gevent that might need those settings. For example::

        >>> from gevent import config
        >>> config.fileobject = 'thread'

        >>> from gevent import fileobject
        >>> fileobject.FileObject.__name__
        'FileObjectThread'

    .. versionadded:: 1.3a2

    c                 ó,   — t          ¦   «         | _        d S r   )rj   r   rc   s    r   Ú__init__zConfig.__init__À   s   € Ý%™œˆŒˆˆr   c                 óv   — || j         vrt          d|z  ¦  «        ‚| j         |                              ¦   «         S ©Nz No configuration setting for: %r)r   ÚAttributeErrorr   )r   r   s     r   Ú__getattr__zConfig.__getattr__Ã   s<   € Ø�t”}Ð$Ð$Ý Ð!CÀdÑ!JÑKÔKÐKØŒ}˜TÔ"×&Ò&Ñ(Ô(Ð(r   c                 ó¨   •— |dk    r!|| j         v r|                      ||¦  «         d S t          t          | ¦  «                             ||¦  «         d S )Nr   )r   r   Úsuperr-   Ú__setattr__)r   r   r   Ú	__class__s      €r   rt   zConfig.__setattr__È   sZ   ø€ Ø�:ÒÐ $¨$¬-Ð"7Ð"7Ø�HŠH�T˜5Ñ!Ô!Ð!Ð!Ð!å•&˜$ÑÔ×+Ò+¨D°%Ñ8Ô8Ð8Ð8Ð8r   c                 ó|   — || j         vrt          d|z  ¦  «        ‚| j         |                              |¦  «         d S ro   )r   rp   r   )r   r   r   s      r   r   z
Config.setÎ   sD   € Ø�t”}Ð$Ð$Ý Ð!CÀdÑ!JÑKÔKÐKØŒ�dÔ×Ò Ñ&Ô&Ð&Ð&Ð&r   c                 ó*   — t          | j        ¦  «        S r   )r:   r   rc   s    r   Ú__dir__zConfig.__dir__Ó   s   € Ý�D”MÑ"Ô"Ð"r   c                 óð   — | j                              ¦   «         D ][\  }}t          |¦  «         t          t          j        |j                             ¦   «         d¦  «        ¦  «         t          ¦   «          Œ\d S )Nz    )r   ÚitemsÚprintr6   Úindentr(   Úlstrip)r   ÚkÚvs      r   Ú
print_helpzConfig.print_helpÖ   sk   € Ø”M×'Ò'Ñ)Ô)ð 	ð 	‰DˆAˆqÝ�!‰HŒHˆHÝ•(”/ !¤)×"2Ò"2Ñ"4Ô"4°gÑ>Ô>Ñ?Ô?Ð?Ý‰GŒGˆGˆGð	ð 	r   )r@   rA   rB   r(   rm   rq   rt   r   rx   r€   Ú__classcell__)ru   s   @r   r-   r-   ¬   s�   ø€ € € € € ðð ð&(ð (ð (ð)ð )ð )ð
9ð 9ð 9ð 9ð 9ð'ð 'ð 'ð
#ð #ð #ðð ð ð ð ð ð r   r-   c                   ó>   — e Zd Zd„ Z e¦   «         fd„Zi Zd„ Zd„ ZdS )ÚImportableSettingc                 óð   — t          |t          ¦  «        sJ ‚|st          d¦  «        ‚|d d…         D ])}	 |                      |¦  «        c S # t          $ r Y Œ&w xY w|                      |d         ¦  «        S )NzCannot import from empty listéÿÿÿÿ)r=   r:   ÚImportErrorÚ_import_one)r   Ú
candidatesÚitems      r   Ú_import_one_ofz ImportableSetting._import_one_ofß   sŸ   € Ý˜*¥dÑ+Ô+Ð+Ð+Ð+Øð 	?ÝÐ=Ñ>Ô>Ð>à˜s ˜s”Oð 	ð 	ˆDðØ×'Ò'¨Ñ-Ô-Ð-Ð-Ð-øÝð ð ð Ø�ðøøøð ×Ò 
¨2¤Ñ/Ô/Ð/s   ¶AÁ
AÁAc                 ó@  — t          |t          ¦  «        s|S d|vsd|v r't          d|›dt          | j        ¦  «        ›�¦  «        ‚|                     dd¦  «        \  }}t          j        |¦  «        }t          |||¦  «        }||u rt          d|›d|›�¦  «        ‚|S )Nú.ú/zCannot import z:. Required format: [package.]module.class. Or choose from é   z from )	r=   r   r†   r:   r4   ÚrsplitÚ	importlibÚimport_moduler;   )r   ÚpathÚ_MISSINGÚmoduler‰   Úxs         r   r‡   zImportableSetting._import_oneì   sÃ   € Ý˜$¥Ñ-Ô-ð 	ØˆKà�dˆ?ˆ?˜c T˜k˜kÝ�+ð "&  ¥t¨DÔ,>Ñ'?Ô'?Ð'?ðAñ Bô Bð Bð —{’{ 3¨Ñ*Ô*‰ˆ�ÝÔ(¨Ñ0Ô0ˆÝ�F˜D (Ñ+Ô+ˆØ�ˆ=ˆ=Ý�+¸D¸D¸DÀ&À&ÐIÑJÔJÐJØˆr   c                 ót   ‡ — t          |t          ¦  «        r|S ‰                      ˆ fd„|D ¦   «         ¦  «        S )Nc                 óF   •— g | ]}‰j                              ||¦  «        ‘ŒS rC   )r4   r   )Ú.0r•   r   s     €r   ú
<listcomp>z.ImportableSetting.validate.<locals>.<listcomp>  s,   ø€ Ð#PÐ#PÐ#PÀQ DÔ$6×$:Ò$:¸1¸aÑ$@Ô$@Ð#PÐ#PÐ#Pr   )r=   r!   rŠ   rZ   s   ` r   r<   zImportableSetting.validate   sC   ø€ Ý�e�TÑ"Ô"ð 	ØˆLØ×"Ò"Ð#PÐ#PÐ#PÐ#PÈ%Ð#PÑ#PÔ#PÑQÔQÐQr   c                 ó²   — i }| j                              ¦   «         D ]:\  }}	 |                      |¦  «        ||<   Œ# t          $ r}|||<   Y d }~Œ3d }~ww xY w|S r   )r4   rz   r‡   r†   )r   r_   r   re   Úes        r   Úget_optionszImportableSetting.get_options  s~   € ØˆØÔ+×1Ò1Ñ3Ô3ð 	!ð 	!‰IˆD�#ð!Ø#×/Ò/°Ñ4Ô4��t‘�øÝð !ð !ð !Ø ��t‘�����øøøøð!øøøàˆs   ¢;»
AÁAÁAN)	r@   rA   rB   rŠ   Úobjectr‡   r4   r<   rœ   rC   r   r   rƒ   rƒ   Ý   sj   € € € € € ð0ð 0ð 0ð *0¨©¬ð ð ð ð ð$ €MðRð Rð Rð
ð ð ð ð r   rƒ   c                   ó:   — e Zd Z ee¦  «        Z ee¦  «        ZdS )ÚBoolSettingMixinN)r@   rA   rB   rf   rS   r<   Úconvert_str_value_as_isr[   rC   r   r   rŸ   rŸ     s-   € € € € € Øˆ|˜MÑ*Ô*€Hàˆ|Ð3Ñ4Ô4€H€H€Hr   rŸ   c                   ó*   — e Zd Zd„ Z ee¦  «        ZdS )ÚIntSettingMixinc                 ó(   — |rt          |¦  «        S d S r   )ÚintrZ   s     r   r[   zIntSettingMixin._convert  s    € Øð 	Ý�u‘:”:Ðð	ð 	r   N)r@   rA   rB   r[   rf   rU   r<   rC   r   r   r¢   r¢     s/   € € € € € ðð ð ð ˆ|Ð-Ñ.Ô.€H€H€Hr   r¢   c                   ó   — e Zd Zd„ ZdS )Ú_PositiveValueMixinc                 ó4   — |�|dk    rt          d¦  «        ‚|S )Nr   zMust be positiverE   rZ   s     r   r<   z_PositiveValueMixin.validate   s$   € ØÐ ¨!¢ ÝÐ/Ñ0Ô0Ð0Øˆr   N)r@   rA   rB   r<   rC   r   r   r¦   r¦     s#   € € € € € ðð ð ð ð r   r¦   c                   ó   — e Zd Zd„ ZdS )ÚFloatSettingMixinc                 ó(   — |rt          |¦  «        S d S r   )ÚfloatrZ   s     r   r[   zFloatSettingMixin._convert'  s    € Øð 	 Ý˜‘<”<Ðð	 ð 	 r   N)r@   rA   rB   r[   rC   r   r   r©   r©   &  s#   € € € € € ð ð  ð  ð  ð  r   r©   c                   ó$   — e Zd ZddddœZdZd„ ZdS )ÚByteCountSettingMixini   i   i   @)ÚkbÚmbÚgbé   c                 ó$  — |rt          |t          ¦  «        s|S |                     ¦   «         }| j                             ¦   «         D ];\  }}|| j         d …         |k    r"t          |d | j         …         ¦  «        |z  c S Œ<t          |¦  «        S r   )r=   r?   r%   Ú
_MULTIPLESrz   Ú_SUFFIX_SIZEr¤   )r   r   ÚsÚms       r   r[   zByteCountSettingMixin._convert7  s¥   € Øð 	�J u­cÑ2Ô2ð 	ØˆLØ—’‘”ˆØ”O×)Ò)Ñ+Ô+ð 	;ð 	;‰DˆAˆqØ�dÔ'Ð'Ð(Ð(Ô)¨QÒ.Ð.Ý˜5Ð!4 4Ô#4Ð"4Ð!4Ô5Ñ6Ô6¸Ñ:Ð:Ð:Ð:ð /å�5‰zŒzÐr   N)r@   rA   rB   r³   r´   r[   rC   r   r   r­   r­   ,  sA   € € € € € ð ØØ ð	ð €Jð €Lðð ð ð ð r   r­   c                   ó(   — e Zd ZdZg d¢ZdddddœZdS )	ÚResolverz€    The callable that will be used to create
    :attr:`gevent.hub.Hub.resolver`.

    See :doc:`dns` for more information.
    )ÚthreadÚ	dnspythonÚaresÚblockzgevent.resolver.ares.Resolverzgevent.resolver.thread.Resolverz!gevent.resolver.blocking.Resolverz"gevent.resolver.dnspython.Resolver)r»   r¹   r¼   rº   N)r@   rA   rB   r   r>   r4   rC   r   r   r¸   r¸   A  s@   € € € € € ð€Dðð ð €Gð 0Ø3Ø4Ø9ð	ð €M€M€Mr   r¸   c                   ó   — e Zd ZdZdZdS )Ú
Threadpoolz'    The kind of threadpool we use.
    zgevent.threadpool.ThreadPoolN)r@   rA   rB   r   r>   rC   r   r   r¾   r¾   Z  s   € € € € € ð€Dð -€G€G€Gr   r¾   c                   ó"   — e Zd ZdZdZdZdZdZdS )ÚThreadpoolIdleTaskTimeoutTÚthreadpool_idle_task_timeoutÚ#GEVENT_THREADPOOL_IDLE_TASK_TIMEOUTz³    How long threads in the default threadpool (used for
    DNS by default) are allowed to be idle before exiting.

    Use -1 for no timeout.

    .. versionadded:: 22.08.0
    g      @N)r@   rA   rB   r*   r   r   r   r>   rC   r   r   rÀ   rÀ   b  s+   € € € € € Ø€HØ)€DØ;€Oð€Dð €G€G€Gr   rÀ   c                   óH   — e Zd ZdZesg d¢ng d¢ZddddœZed         ed<   d	S )
ÚLoopz‚    The kind of the loop we use.

    On Windows, this defaults to libuv, while on
    other platforms it defaults to libev.

    )ú
libev-cextú
libev-cffiú
libuv-cffi)rÇ   rÅ   rÆ   zgevent.libev.corecext.loopzgevent.libev.corecffi.loopzgevent.libuv.loop.looprÇ   ÚlibuvN)r@   rA   rB   r   r   r>   r4   rC   r   r   rÄ   rÄ   u  sq   € € € € € ð€Dð ð	ð ð ð ð ðð ð ð	 ð 3Ø2Ø.ðð €Mð +¨<Ô8€M�'ÑÐÐr   rÄ   c                   ó   — e Zd ZdZdZdS )ÚFormatContextÚformat_contextzpprint.safereprN)r@   rA   rB   r   r>   rC   r   r   rÊ   rÊ   ’  s   € € € € € Ø€Dð  €G€G€Gr   rÊ   c                   ó4   — e Zd ZdZdZdZdZ ee¦  «        Z	dS )ÚLibevBackendÚlibev_backendÚGEVENT_BACKENDz0    The backend for libev, such as 'select'
    N)
r@   rA   rB   r   r   r   r>   rf   rU   r<   rC   r   r   rÍ   rÍ   š  s6   € € € € € Ø€DØ&€Oð€Dð €Gàˆ|Ð-Ñ.Ô.€H€H€Hr   rÍ   c                   ó*   — e Zd ZdZdZddgZddddœZd	S )
Ú
FileObjectzo    The kind of ``FileObject`` we will use.

    See :mod:`gevent.fileobject` for a detailed description.

    ÚGEVENT_FILEÚposixr¹   z)gevent._fileobjectcommon.FileObjectThreadz'gevent._fileobjectposix.FileObjectPosixz(gevent._fileobjectcommon.FileObjectBlock)r¹   rÓ   r¼   N)r@   rA   rB   r   r   r>   r4   rC   r   r   rÑ   rÑ   §  sB   € € € € € ð€Dð $€Oð 	Øð€Gð >Ø:Ø;ðð €M€M€Mr   rÑ   c                   ó   — e Zd ZdZdZdZdZdS )ÚWatchChildrenz�    Should we *not* watch children with the event loop watchers?

    This is an advanced setting.

    See :mod:`gevent.os` for a detailed description.
    Údisable_watch_childrenÚGEVENT_NOWAITPIDFN)r@   rA   rB   r   r   r   r>   rC   r   r   rÕ   rÕ   ¼  s&   € € € € € ð€Dð $€DØ(€OØ€G€G€Gr   rÕ   c                   ó   — e Zd ZdZdZdZdZdS )ÚTraceMallocÚtrace_mallocÚPYTHONTRACEMALLOCFan      Should FFI objects track their allocation?

    This is only useful for low-level debugging.

    On Python 3, this environment variable is built in to the
    interpreter, and it may also be set with the ``-X
    tracemalloc`` command line argument.

    On Python 2, gevent interprets this argument and adds extra
    tracking information for FFI objects.
    N©r@   rA   rB   r   r   r>   r   rC   r   r   rÙ   rÙ   É  s$   € € € € € Ø€DØ)€OØ€Gð€D€D€Dr   rÙ   c                   ó   — e Zd ZdZdZdZdZdS )ÚTrackGreenletTreeÚtrack_greenlet_treeÚGEVENT_TRACK_GREENLET_TREETa½      Should `Greenlet` objects track their spawning tree?

    Setting this to a false value will make spawning `Greenlet`
    objects and using `spawn_raw` faster, but the
    ``spawning_greenlet``, ``spawn_tree_locals`` and ``spawning_stack``
    will not be captured. Setting this to a false value can also
    reduce memory usage because capturing the stack captures
    some information about Python frames.

    .. versionadded:: 1.3b1
    NrÜ   rC   r   r   rÞ   rÞ   Ü  s$   € € € € € Ø €DØ2€OØ€Gð€D€D€Dr   rÞ   c                   ó   — e Zd ZdZdZdZdZdS )ÚMonitorThreadÚmonitor_threadÚGEVENT_MONITOR_THREAD_ENABLEFae      Should each hub start a native OS thread to monitor
    for problems?

    Such a thread will periodically check to see if the event loop
    is blocked for longer than `max_blocking_time`, producing output on
    the hub's exception stream (stderr by default) if it detects this condition.

    If this setting is true, then this thread will be created
    the first time the hub is switched to,
    or you can call :meth:`gevent.hub.Hub.start_periodic_monitoring_thread` at any
    time to create it (from the same thread that will run the hub). That function
    will return an instance of :class:`gevent.events.IPeriodicMonitorThread`
    to which you can add your own monitoring functions. That function
    also emits an event of :class:`gevent.events.PeriodicMonitorThreadStartedEvent`.

    .. seealso:: `max_blocking_time`

    .. versionadded:: 1.3b1
    NrÜ   rC   r   r   râ   râ   ò  s$   € € € € € Ø€DØ4€OØ€Gð€D€D€Dr   râ   c                   ó   — e Zd ZdZdZdZdZdS )ÚMaxBlockingTimeÚmax_blocking_timeÚGEVENT_MAX_BLOCKING_TIMEgš™™™™™¹?a      If the `monitor_thread` is enabled, this is
    approximately how long (in seconds)
    the event loop will be allowed to block before a warning is issued.

    This function depends on using `greenlet.settrace`, so installing
    your own trace function after starting the monitoring thread will
    cause this feature to misbehave unless you call the function
    returned by `greenlet.settrace`. If you install a tracing function *before*
    the monitoring thread is started, it will still be called.

    .. note:: In the unlikely event of creating and using multiple different
        gevent hubs in the same native thread in a short period of time,
        especially without destroying the hubs, false positives may be reported.

    .. versionadded:: 1.3b1
    NrÜ   rC   r   r   ræ   ræ     s&   € € € € € Ø€Dð 1€OØ€Gð€D€D€Dr   ræ   c                   ó   — e Zd ZdZdZdZdZdS )ÚMonitorMemoryPeriodÚmemory_monitor_periodÚGEVENT_MONITOR_MEMORY_PERIODé   a0      If `monitor_thread` is enabled, this is approximately how long
    (in seconds) we will go between checking the processes memory usage.

    Checking the memory usage is relatively expensive on some operating
    systems, so this should not be too low. gevent will place a floor
    value on it.
    NrÜ   rC   r   r   rê   rê   %  s$   € € € € € Ø"€Dà4€OØ€Gð€D€D€Dr   rê   c                   ó   — e Zd ZdZdZdZdZdS )ÚMonitorMemoryMaxUsageÚmax_memory_usageÚGEVENT_MONITOR_MEMORY_MAXNaŒ      If `monitor_thread` is enabled,
    then if memory usage exceeds this amount (in bytes), events will
    be emitted. See `gevent.events`. In the environment variable, you can use
    a suffix of 'kb', 'mb' or 'gb' to specify the value in kilobytes, megabytes
    or gigibytes.

    There is no default value for this setting. If you wish to
    cap memory usage, you must choose a value.
    rÜ   rC   r   r   rï   rï   4  s$   € € € € € Ø€Dà1€OØ€Gð	€D€D€Dr   rï   c                   óT   — e Zd ZdZed„ ¦   «         Z ee¦  «        Z ee	¦  «        Z
dS )ÚAresSettingMixinFc                 ó    — | j         dd …         S )Nrí   )r   rc   s    r   Ú
kwarg_namezAresSettingMixin.kwarg_nameM  s   € àŒy˜˜˜Œ}Ðr   N)r@   rA   rB   r*   r+   rõ   rf   rU   r<   r    r[   rC   r   r   ró   ró   I  sN   € € € € € à€Hàðð ñ „Xðð ˆ|Ð-Ñ.Ô.€Hàˆ|Ð3Ñ4Ô4€H€H€Hr   ró   c                   ó   — e Zd ZdZdZdZdS )Ú	AresFlagsÚ
ares_flagsNÚGEVENTARES_FLAGS©r@   rA   rB   r   r>   r   rC   r   r   r÷   r÷   U  ó   € € € € € Ø€DØ€GØ(€O€O€Or   r÷   c                   ó"   — e Zd ZdZdZdZdZdZdS )ÚAresTimeoutTÚares_timeoutNÚGEVENTARES_TIMEOUTzˆ
    .. deprecated:: 1.3a2
       Prefer the :attr:`resolver_timeout` setting. If both are set,
       the results are not defined.
    ©r@   rA   rB   r*   r   r>   r   r   rC   r   r   rý   rý   Z  s)   € € € € € Ø€HØ€DØ€GØ*€Oð€D€D€Dr   rý   c                   ó   — e Zd ZdZdZdZdS )Ú	AresTriesÚ
ares_triesNÚGEVENTARES_TRIESrú   rC   r   r   r  r  f  rû   r   r  c                   ó   — e Zd ZdZdZdZdS )Ú	AresNdotsÚ
ares_ndotsNÚGEVENTARES_NDOTSrú   rC   r   r   r  r  k  rû   r   r  c                   ó   — e Zd ZdZdZdZdS )ÚAresUDPPortÚares_udp_portNÚGEVENTARES_UDP_PORTrú   rC   r   r   r
  r
  p  ó   € € € € € Ø€DØ€GØ+€O€O€Or   r
  c                   ó   — e Zd ZdZdZdZdS )ÚAresTCPPortÚares_tcp_portNÚGEVENTARES_TCP_PORTrú   rC   r   r   r  r  u  r  r   r  c                   ó"   — e Zd ZdZdZdZdZdZdS )ÚAresServersTÚares_serversNÚGEVENTARES_SERVERSa)      A list of strings giving the IP addresses of nameservers for the ares resolver.

    In the environment variable, these strings are separated by commas.

    .. deprecated:: 1.3a2
       Prefer the :attr:`resolver_nameservers` setting. If both are set,
       the results are not defined.
    r   rC   r   r   r  r  z  s)   € € € € € Ø€HØ€DØ€GØ*€Oð€D€D€Dr   r  c                   óF   — e Zd ZdZdZdZdZdZej	        Z	e
d„ ¦   «         ZdS )ÚResolverNameserversTÚresolver_nameserversNÚGEVENT_RESOLVER_NAMESERVERSa¯      A list of strings giving the IP addresses of nameservers for the (non-system) resolver.

    In the environment variable, these strings are separated by commas.

    .. rubric:: Resolver Behaviour

    * blocking

      Ignored

    * Threaded

      Ignored

    * dnspython

      If this setting is not given, the dnspython resolver will
      load nameservers to use from ``/etc/resolv.conf``
      or the Windows registry. This setting replaces any nameservers read
      from those means. Note that the file and registry are still read
      for other settings.

      .. caution:: dnspython does not validate the members of the list.
         An improper address (such as a hostname instead of IP) has
         undefined results, including hanging the process.

    * ares

      Similar to dnspython, but with more platform and compile-time
      options. ares validates that the members of the list are valid
      addresses.
    c                 ó   — dS )NÚserversrC   rc   s    r   rõ   zResolverNameservers.kwarg_name¹  ó   € àˆyr   )r@   rA   rB   r*   r   r>   r   r   r   r[   r+   rõ   rC   r   r   r  r  Š  sU   € € € € € Ø€HØ!€DØ€GØ3€Oð €DðF Ô€Hð ðð ñ „Xðð ð r   r  c                   ó4   — e Zd ZdZdZdZdZed„ ¦   «         ZdS )ÚResolverTimeoutTÚresolver_timeoutÚGEVENT_RESOLVER_TIMEOUTz¨    The total amount of time that the DNS resolver will spend making queries.

    Only the ares and dnspython resolvers support this.

    .. versionadded:: 1.3a2
    c                 ó   — dS )NÚtimeoutrC   rc   s    r   rõ   zResolverTimeout.kwarg_nameÊ  r  r   N)	r@   rA   rB   r*   r   r   r   r+   rõ   rC   r   r   r  r  ¾  sE   € € € € € Ø€HØ€DØ/€Oð€Dð ðð ñ „Xðð ð r   r  Ú__main__)<r(   Ú
__future__r   r   r   r�   r]   r6   Úgevent._compatr   r   Ú__all__r$   r!   r
   rH   rS   rU   r    r�   r   Údictrb   rj   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  r  r   r   r†   r@   r€   rC   r   r   ú<module>r(     s  ððð ð AÐ @Ð @Ð @Ð @Ð @Ð @Ð @Ð @Ð @à Ð Ð Ð Ø 	€	€	€	Ø €€€à 'Ð 'Ð 'Ð 'Ð 'Ð 'Ø Ð Ð Ð Ð Ð ð ð€ð €ð<ð <ð <ð <ð <�$ñ <ô <ð <ð|9ð 9ð 9ðð ð ð$ð ð ð ,Ð ð$7ð $7ð $7ð $7ð $7ˆfñ $7ô $7ð $7ðN ˆ+�i ' ¨T¨T°'Ô2BÑ-CÔ-CÑ
DÔ
D€ð	ð 	ð 	ð.ð .ð .ð .ð .ˆVñ .ô .ð .ðb/ð /ð /ð /ð /˜ñ /ô /ð /ðd5ð 5ð 5ð 5ð 5�vñ 5ô 5ð 5ð/ð /ð /ð /ð /�fñ /ô /ð /ðð ð ð ð ˜&ñ ô ð ð ð  ð  ð  ð  Ð+ñ  ô  ð  ðð ð ð ð Ð/ñ ô ð ð*ð ð ð ð Ð  'ñ ô ð ð2-ð -ð -ð -ð -Ð" Gñ -ô -ð -ðð ð ð ð Ð 1°7ñ ô ð ð&9ð 9ð 9ð 9ð 9Ð˜gñ 9ô 9ð 9ð: ð  ð  ð  ð  Ð% wñ  ô  ð  ð
/ð 
/ð 
/ð 
/ð 
/�7ñ 
/ô 
/ð 
/ðð ð ð ð Ð" Gñ ô ð ð*
ð 
ð 
ð 
ð 
Ð$ gñ 
ô 
ð 
ðð ð ð ð �/ 7ñ ô ð ð&ð ð ð ð Ð(¨'ñ ô ð ð,ð ð ð ð Ð$ gñ ô ð ð4ð ð ð ð Ð'¨ñ ô ð ð2ð ð ð ð Ð+¨Wñ ô ð ðð ð ð ð Ð1°7ñ ô ð ð*
5ð 
5ð 
5ð 
5ð 
5�vñ 
5ô 
5ð 
5ð)ð )ð )ð )ð )Ð  'ñ )ô )ð )ð

ð 
ð 
ð 
ð 
Ð" Gñ 
ô 
ð 
ð)ð )ð )ð )ð )Ð  'ñ )ô )ð )ð
)ð )ð )ð )ð )Ð  'ñ )ô )ð )ð
,ð ,ð ,ð ,ð ,Ð" Gñ ,ô ,ð ,ð
,ð ,ð ,ð ,ð ,Ð" Gñ ,ô ,ð ,ð
ð ð ð ð Ð" Gñ ô ð ð 1ð 1ð 1ð 1ð 1Ð*¨Gñ 1ô 1ð 1ðhð ð ð ð Ð'Ð)9¸7ñ ô ð ð  
ˆ‰Œ€ð	Ø€D�F„F‡J‚J�L„L€L€LøØð 	ð 	ð 	Ø€Dð	øøøð ˆzÒÐØ
×ÒÑÔÐÐÐð Ðs   ÉI! É!I)É(I)