
    i                        S r SSKJr  SSKrSSKrSSKJrJrJr  \R                  " \
R                  SSS9S   5      r\R                  \R                  " 5       5        SS jr\" 5          " S	 S
5      rg)a  Multicast DNS Service Discovery for Python, v0.14-wmcbrine
    )
Copyright 2003 Paul Scott-Murphy, 2014 William McBrine

This module provides a framework for the use of DNS Service Discovery
using IP multicast.

This library is free software; you can redistribute it and/or
modify it under the terms of the GNU Lesser General Public
License as published by the Free Software Foundation; either
version 2.1 of the License, or (at your option) any later version.

This library is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
Lesser General Public License for more details.

You should have received a copy of the GNU Lesser General Public
License along with this library; if not, write to the Free Software
Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301
USA
    )annotationsN)AnyClassVarcast.   )maxsplitc                     [         R                  [        R                  :X  a$  [         R	                  [        R
                  5        g g )N)loglevelloggingNOTSETsetLevelWARN     G/home/sebas/venvs/catt/lib/python3.13/site-packages/zeroconf/_logger.pyset_logger_level_if_unsetr   "   s'    
yyGNN"W\\" #r   c                  t    \ rS rSr% 0 rS\S'   \S
S j5       r\S
S j5       r\SS j5       r	\SS j5       r
Srg	)QuietLogger*   z ClassVar[dict[str, int | tuple]]
_seen_logsc                    [         R                  " 5       n[        US   5      nX0R                  ;  a  X R                  U'   [        R
                  nO[        R                  nU" U=(       d    S/SS06  g )Nr   Exception occurredexc_infoT)sysr   strr   r   warningdebug)clslogger_datar   exc_strloggers        r   log_exception_warning!QuietLogger.log_exception_warning-   sY    <<>hqk"..(&.NN7#[[FYYF6!5 6G$Gr   c                    Sn[         R                  " 5       n[        US   5      nX@R                  ;  a  X0R                  U'   Sn[        R
                  " U=(       d    S/SU06  g )NFr   Tr   r   )r   r   r   r   r   r   )r    r!   log_exc_infor   r"   s        r   log_exception_debugQuietLogger.log_exception_debug9   sU    <<>hqk"..(&.NN7#L		K9$8#9R\Rr   c                    US   nX R                   ;  a   SU R                   U'   [        R                  nO[        R                  n[	        [
        U R                   U   5      S-   U R                   U'   U" U6   g )Nr   r   r   r   r   r   r   int)r    argsmsg_strr#   s       r   log_warning_onceQuietLogger.log_warning_onceD   s_    q'..(&'CNN7#[[FYYF"&sCNN7,C"Dq"Hwr   c                    US   nX0R                   ;  a   SU R                   U'   [        R                  nO[        R                  n[	        [
        U R                   U   5      S-   U R                   U'   U" USU06  g )Nr   r   r   r+   )r    excr-   r.   r#   s        r   log_exception_onceQuietLogger.log_exception_onceO   se    q'..(&'CNN7#[[FYYF"&sCNN7,C"Dq"Hw#s#r   r   N)r!   r   returnNone)r-   r   r5   r6   )r2   	Exceptionr-   r   r5   r6   )__name__
__module____qualname____firstlineno__r   __annotations__classmethodr$   r(   r/   r3   __static_attributes__r   r   r   r   r   *   s_    35J05	H 	H S S   $ $r   r   )r5   r6   )__doc__
__future__r   r   r   typingr   r   r   	getLoggerr8   splitr   
addHandlerNullHandlerr   r   r   r   r   <module>rF      si   . #  
 & &sQ7:; w""$ %#
  .$ .$r   