§
    ­eîi”  ã                   ó8   — d Z ddlZddededz  dej        fd„ZdS )a  This module contains helper functions related to logging.

Warning:
    Contents of this module are intended to be used internally by the library and *not* by the
    user. Changes to this module are not considered breaking changes and may not be documented in
    the changelog.
é    NÚ	file_nameÚ
class_nameÚreturnc                 ó  — |                       d¦  «        }|d                              d¦  «        r|€|d                              d¦  «        }n&|d         › |p|d                              ¦   «         › �}t	          j        |¦  «        S )aî  Returns a logger with an appropriate name.
    Use as follows::

        logger = get_logger(__name__)

    If for example `__name__` is `telegram.ext._updater`, the logger will be named
    `telegram.ext.Updater`. If `class_name` is passed, this will result in
    `telegram.ext.<class_name>`. Useful e.g. for CamelCase class names.

    If the file name points to a utils module, the logger name will simply be `telegram(.ext)`.

    Returns:
        :class:`logging.Logger`: The logger.
    Ú_é   ÚutilsNr   ú.)ÚsplitÚ
startswithÚrstripÚ
capitalizeÚloggingÚ	getLogger)r   r   ÚpartsÚnames       ú[/home/div/.hermes/hermes-agent/venv/lib/python3.11/site-packages/telegram/_utils/logging.pyÚ
get_loggerr      s†   € ð �OŠO˜CÑ Ô €EØˆQ„x×Ò˜7Ñ#Ô#ð B¨
Ð(:Ø�QŒx�Š˜sÑ#Ô#ˆˆà˜”(ÐA˜JÐ?¨%°¬(×*=Ò*=Ñ*?Ô*?ÐAÐAˆÝÔ˜TÑ"Ô"Ð"ó    )N)Ú__doc__r   ÚstrÚLoggerr   © r   r   ú<module>r      sX   ðð&ð ð €€€ð#ð #˜#ð #¨3°©:ð #ÀÄð #ð #ð #ð #ð #ð #r   