Server IP : 192.158.238.246 / Your IP : 18.217.230.80 Web Server : LiteSpeed System : Linux uniform.iwebfusion.net 4.18.0-553.27.1.lve.1.el8.x86_64 #1 SMP Wed Nov 20 15:58:00 UTC 2024 x86_64 User : jenniferflocom ( 1321) PHP Version : 8.1.32 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : OFF | Pkexec : OFF Directory : /usr/lib/python3.6/site-packages/setuptools/command/__pycache__/ |
Upload File : |
3 9��f� � @ s� d dl mZ d dlmZ d dlmZ d dlZd dlZd dlmZ d dl m Z ddd d gZddd�Zddd�Z G dd � d e �ZG dd � d e�ZdS )� )�convert_path)�log)�DistutilsOptionErrorN)�configparser)�Command�config_file�edit_config�option_base�setopt�localc C sh | dkrdS | dkr,t jjt jjtj�d�S | dkrZt jdkrBdpDd}t jjtd | ��S t 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)Zkind�dot� r �/usr/lib/python3.6/setopt.pyr s Fc C s. t jd| � tj� }|j| g� x�|j� D ]�\}}|dkrTt jd|| � |j|� q*|j|�svt jd|| � |j |� x||j� D ]p\}}|dkr�t jd||| � |j ||� |j|�s�t jd|| � |j|� q�t jd|||| � |j|||� q�W q*W t jd| � |�s*t | d ��}|j|� W dQ R X dS ) aY Edit 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 %sNzDeleting 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 �debugr ZRawConfigParser�read�items�infoZremove_sectionZhas_sectionZadd_sectionZ remove_option�options�set�open�write) �filenameZsettings�dry_runZoptsZsectionr"