
    Ph                     @    d Z ddlZddlZddlZdgZd Z G d d      Zy)z,Provide class for testing in French locale

    NCommaDecimalPointLocalec                     t         j                  dk(  rdg} ng d} t        j                  t        j                        }d}	 | D ]*  }	 t        j
                  t        j                  |       |} n t        j
                  t        j                  |       ||fS # t        j                  $ r Y kw xY w# t        j
                  t        j                  |       w xY w)a:  See if platform has a decimal point as comma locale.

    Find a locale that uses a comma instead of a period as the
    decimal point.

    Returns
    -------
    old_locale: str
        Locale when the function was called.
    new_locale: {str, None)
        First French locale found, None if none found.

    win32FRENCH)fr_FRzfr_FR.UTF-8fi_FIzfi_FI.UTF-8Nlocale)sysplatformr
   	getlocale
LC_NUMERIC	setlocaleError)locales
old_locale
new_localelocs       dC:\Users\daisl\Desktop\realtime-object-detection\venv\Lib\site-packages\numpy/core/tests/_locales.pyfind_comma_decimal_point_localer      s     ||w*B!!&"3"34JJ	?C  !2!2C8 
	  	**:>z!!	 <<  	**:>s0   B3 &B.B3 B0-B3 /B00B3 3'Cc                   <    e Zd ZdZ e       \  ZZd Zd Zd Z	d Z
y)r   a  Sets LC_NUMERIC to a locale with comma as decimal point.

    Classes derived from this class have setup and teardown methods that run
    tests with locale.LC_NUMERIC set to a locale where commas (',') are used as
    the decimal point instead of periods ('.'). On exit the locale is restored
    to the initial locale. It also serves as context manager with the same
    effect. If no such locale is available, the test is skipped.

    .. versionadded:: 1.15.0

    c                     | j                   t        j                  d       t        j                  t        j
                  | j                          y NzNo French locale availabler	   
tst_localepytestskipr
   r   r   selfs    r   setup_methodz$CommaDecimalPointLocale.setup_method<   3    ??"KK45**4??C    c                 b    t        j                  t         j                  | j                         y Nr	   r
   r   r   
cur_localer   s    r   teardown_methodz'CommaDecimalPointLocale.teardown_methodA       **4??Cr"   c                     | j                   t        j                  d       t        j                  t        j
                  | j                          y r   r   r   s    r   	__enter__z!CommaDecimalPointLocale.__enter__D   r!   r"   c                 b    t        j                  t         j                  | j                         y r$   r%   )r   typevalue	tracebacks       r   __exit__z CommaDecimalPointLocale.__exit__I   r(   r"   N)__name__
__module____qualname____doc__r   r&   r   r    r'   r*   r/    r"   r   r   r   .   s.    
  ?@ZD
DD
Dr"   )r3   r   r
   r   __ALL__r   r   r4   r"   r   <module>r6      s/      $
%"DD Dr"   