관리-도구
편집 파일: __init__.cpython-311.pyc
� �܋f� � � � d Z ddlmZ ddlZddlZddlmZmZ ddlm Z m Z mZmZm Z ej d� � Zi Zd� Zd d�Z d d �ZdS )z� raven.utils ~~~~~~~~~~~~~~~~~~~ :copyright: (c) 2010-2012 by the Sentry Team, see AUTHORS for more details. :license: BSD, see LICENSE for more details. � )�absolute_importN)� iteritems�string_types)�merge_dicts�varmap�memoize�once� is_namedtuplezraven.errorsc �l � d } dd l } |� | � � j S # t $ r Y nw xY w# t $ r Y nw xY wt |d� � r|j }nGt |d� � r|j }n/t |d� � r|j }nt |d� � r|j }t |� � r |� � }t |t t t f� � sd }|�d S t |t t f� � r(d� t t |� � � � }t! |� � S )Nr �get_version�__version__�VERSION�version�.)� pkg_resources�get_distributionr � Exception�ImportError�hasattrr r r �callable� isinstancer �list�tuple�join�map�str)�module_name�appr r s �K/opt/cloudlinux/venv/lib64/python3.11/site-packages/raven/utils/__init__.py�get_version_from_appr sd � ��G�� ���� � �1�1�+�>�>�F�F��� � � ��D� ����� � � � ��� ���� �s�M�"�"� ��/��� ��m� $� $� ��/��� ��i� � � ��+��� ��i� � � ��+������ ��'�)�)���g��d�E�:�;�;� ������t��'�D�%�=�)�)� .��(�(�3�s�G�,�,�-�-���w�<�<�s �3 �# � 0�0� A �A c �P �� | si S t � � }| D ]V}|� d� � �|� �fd�t dt �� � dz � � D � � � � �Wi }|D ]�}|t vr� t |� � n# t $ r Y �(w xY w t j | }n# t $ r Y �Lw xY w t ||� � }n3# t $ r&}t � |� � d }Y d }~nd }~ww xY w|t |<