Uname: Linux premium294.web-hosting.com 4.18.0-553.45.1.lve.el8.x86_64 #1 SMP Wed Mar 26 12:08:09 UTC 2025 x86_64
Software: LiteSpeed
PHP version: 8.1.32 [ PHP INFO ] PHP os: Linux
Server Ip: 104.21.96.1
Your Ip: 216.73.216.223
User: mjbynoyq (1574) | Group: mjbynoyq (1570)
Safe Mode: OFF
Disable Function:
NONE

name : versioning.cpython-37.pyc
B

��Y(
�@slddlmZddlZyddlZWnek
r8dZYnXddlmZddlm	Z	dZ
ddd�Zd	d
�ZdS)�)�absolute_importN)�	text_type�)�InvalidGitRepository)�
fetch_git_sha�fetch_package_versionc

Cs�|s�tj�|dd�}tj�|�s.td|f��t|d��}t|�����}WdQRX|�	d�r�|dd�}tjj|df|�
d���}q�|Sntj�|dd	d
|�}tj�|��s�tj�tj�|d��s�td|f��tj�|dd�}tj�|��r�t|d���}xx|D]p}|��}|�s�q|dd
�dk�r.�qy|�
dd
�\}}	Wntk
�r\�wYnX|	|k�rt|�S�qWWdQRXtd|f��t|d�}zt|�����S|�
�XdS)z6
    >>> fetch_git_sha(os.path.dirname(__file__))
    z.gitZHEADz-Cannot identify HEAD for git repository at %s�rNzref: ��/�refsZheadsz3%s does not seem to be the root of a git repositoryzpacked-refsr)�#�^� z-Unable to find ref to head "%s" in repository)�os�path�join�existsr�openr�read�strip�
startswith�split�rstrip�
ValueError�close)
r�headZ	head_path�fpZ
revision_fileZpacked_fileZfh�line�revision�ref�r �A/opt/alt/python37/lib/python3.7/site-packages/raven/versioning.pyrsL




rcCs tdkrtd��t�|�}|jS)z-
    >>> fetch_package_version('sentry')
    Nz5pkg_resources is not available on this Python install)�
pkg_resources�NotImplementedError�get_distribution�version)�	dist_name�distr r r!rIs
r)N)
�
__future__r�os.pathrr"�ImportErrorZraven.utils.compatr�
exceptionsr�__all__rrr r r r!�<module>s

8
© 2025 XylotrechusZ