403Webshell
Server IP : 80.87.202.40  /  Your IP : 216.73.216.169
Web Server : Apache
System : Linux rospirotorg.ru 5.14.0-539.el9.x86_64 #1 SMP PREEMPT_DYNAMIC Thu Dec 5 22:26:13 UTC 2024 x86_64
User : bitrix ( 600)
PHP Version : 8.2.27
Disable Function : NONE
MySQL : OFF |  cURL : ON |  WGET : ON |  Perl : ON |  Python : OFF |  Sudo : ON |  Pkexec : ON
Directory :  /usr/lib64/python3.9/site-packages/mercurial/__pycache__/

Upload File :
current_dir [ Writeable] document_root [ Writeable]

 

Command :


[ Back ]     

Current File : /usr/lib64/python3.9/site-packages/mercurial/__pycache__/rcutil.cpython-39.opt-1.pyc
a

�+�bK�@s�ddlmZddlZddlmZmZmZddlmZej	rHddlm
ZnddlmZej
Z
ejZejZdd	�Zdd
d�Zdd
�Zdd�Zdd�Zdd�ZdS)�)�absolute_importN�)�encoding�pycompat�util)�resourceutil)�
scmwindows)�scmposixcsBt�|��tj���r<tjj�t��fdd�t���D��S�gS)z@path could be a file or a directory. return a list of file pathsc3s&|]\}}|�d�r��|�VqdS)�.rcN)�endswith)�.0�f�k��join�p��6/usr/lib64/python3.9/site-packages/mercurial/rcutil.py�	<genexpr>#sz _expandrcpath.<locals>.<genexpr>)rZ
expandpath�os�path�isdirr�sorted�listdir)rrrr�
_expandrcpaths
�rcCsR|durtj}gd�}g}|D].\}}}||vr2q|�||||d|f�q|S)z�Return [(section, name, value, source)] config items.

    The config items are extracted from environment variables specified by env,
    used to override systemrc, but not userrc.

    If env is not provided, encoding.environ will be used.
    N))sEDITOR�ui�editor)sVISUALrr)sPAGER�pagerrs$%s)r�environ�append)�envZ	checklist�resultZenvname�sectionZ
confignamerrr�
envrcitems)sr#cCst�d�}dd�t|�D�S)z#return rc resource IDs in defaultrc�mercurial.defaultrccSs*g|]"}t�d|�r|�d�rd|f�qS)r$r
)r�is_resourcer�r�rrrr�
<listcomp>Cs
�z(default_rc_resources.<locals>.<listcomp>)r�contentsr)Zrsrcsrrr�default_rc_resources@s
�r*cCs�dt�f}dtjvrR|g}tjd�tj�D]"}|s6q,|�dd�t|�D��q,nBdd�t�D�}dd�}|�|t	���|�
|�|�|t���|S)	aRreturn an ordered [(type, obj)] about where to load configs.

    respect $HGRCPATH. if $HGRCPATH is empty, only .hg/hgrc of current repo is
    used. if $HGRCPATH is not set, the platform default will be used.

    if a directory is provided, *.rc files under it will be used.

    type could be either 'path', 'items' or 'resource'. If type is 'path',
    obj is a string, and is the config file path. if type is 'items', obj is a
    list of (section, name, value, source) that should fill the config directly.
    If type is 'resource', obj is a tuple of (package name, resource name).
    sitemssHGRCPATHcss|]}d|fVqdS)�pathNr�rrrrrra�zrccomponents.<locals>.<genexpr>cSsg|]}d|f�qS)sresourcerr&rrrr(cr-z rccomponents.<locals>.<listcomp>cSsdd�|D�S)NcSsg|]}dtj�|�f�qS)r+)rr�normpathr,rrrr(esz2rccomponents.<locals>.<lambda>.<locals>.<listcomp>r)�pathsrrr�<lambda>es�zrccomponents.<locals>.<lambda>)r#rr�splitrZ	ospathsep�extendrr*�systemrcpathr�
userrcpath)ZenvrcZ
_rccomponentsrZ	normpathsrrr�rccomponentsKs


r5cCs
ddd�S)zureturn a dict of default environment variables and their values,
    intended to be set before starting a pager.
    sFRXs-c)sLESSsLVrrrrr�defaultpagerenvnsr6cCs
dtjvS)z5True if repositories `.hg/hgrc` config should be readsHGRCSKIPREPO)rrrrrr�
use_repo_hgrcusr7)N)Z
__future__rr�rrrZutilsrZ	iswindowsrZscmplatformr	Z
fallbackpagerr3r4rr#r*r5r6r7rrrr�<module>s
#

Youez - 2016 - github.com/yon3zu
LinuXploit