Repository URL to install this package:
Version:
0.1.10 ▾
|
odigos
/
etc
/
odigos-vmagent
/
instrumentations
/
python
/
setuptools
/
command
/
__pycache__
/
setopt.cpython-311.pyc
|
---|
§ zQÄg ã óª d dl Z d dlZddlmZ ddlmZ d dlZd dlmZ d dlm Z d dl mZ g d¢Zdd Z ddZ G d de¦ « Z G d de¦ « ZdS )é Né )ÚCommand)Ú_cfg_read_utf8_with_fallback)Úlog)ÚDistutilsOptionError)Úconvert_path)Úconfig_fileÚedit_configÚoption_baseÚsetoptÚlocalc ó^ | dk rdS | dk rGt j t j t j ¦ « d¦ « S | dk rCt j dk rdpd}t j t d |z ¦ « ¦ « S t d | ¦ « )zGet 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') ÚosÚpathÚjoinÚdirnameÚ distutilsÚ__file__ÚnameÚ expanduserr Ú ValueError)ÚkindÚdots ú@/tmp/pip-target-ix0fus71/lib/python/setuptools/command/setopt.pyr r s ð wØ{ØxÒÐÝw||BGOOIÔ,>Ñ?Ô?ÀÑQÔQÐQØv~~ÝgÒ Ð( SÐ.¨BÝw×!Ò!¥,Ð/DÀsÑ/JÑ"KÔ"KÑLÔLÐLÝ ÐNÐPTÑ UÔ UÐUó Fc ó¾ t j d| ¦ « t j ¦ « }d |_ t || ¦ « | ¦ « D ]-\ }}|,t j d|| ¦ « | |¦ « 4| |¦ « s+t j d|| ¦ « | |¦ « | ¦ « D ]¤\ }}|nt j d||| ¦ « | ||¦ « | |¦ « s+t j d|| ¦ « | |¦ « ut j d|||| ¦ « | |||¦ « ¥/t j d | ¦ « |sBt | d d¬¦ « 5 }| |¦ « ddd¦ « dS # 1 swxY w Y dS 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 %sc ó | S ©N© )Úxs r ú<lambda>zedit_config.<locals>.<lambda>( s r 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Úwzutf-8)Úencoding)r ÚdebugÚconfigparserÚRawConfigParserÚoptionxformr ÚitemsÚinfoÚremove_sectionÚhas_sectionÚadd_sectionÚ remove_optionÚoptionsÚsetÚopenÚwrite) ÚfilenameÚsettingsÚdry_runÚoptsÚsectionr3 ÚoptionÚvalueÚfs r r r sJ õ IÐ-¨xÑ8Ô8Ð8ÝÔ'Ñ)Ô)DØ"{DÔÝ xÑ0Ô0Ð0à$NNÑ,Ô,ð 5ñ 5ÑØ?ÝHÐ4°g¸xÑHÔHÐHØ×Ò Ñ(Ô(Ð(Ð(à×#Ò# GÑ,Ô,ð *Ý Ð9¸7ÀHÑMÔMÐMØ× Ò Ñ)Ô)Ð)Ø!(§¢¡¤ð 5ð 5 Ø=ÝIÐ6¸ÀÈÑRÔRÐRØ×&Ò& w°Ñ7Ô7Ð7Ø<<¨Ñ0Ô0ð 5ÝØAÀ7ÈHñô ð ð ×+Ò+¨GÑ4Ô4Ð4øåIØ3°W¸fÀeÈXñô ð ð HHW f¨eÑ4Ô4Ð4Ð4ñ 5õ H\8Ñ$Ô$Ð$Øð Ý (C¨'Ð 2Ñ 2Ô 2ð °aØJJqMMMð ð ð ñ ô ð ð ð ð ð ð ð øøøð ð ð ð ð ð ðð s Æ-GÇGÇGc ó. e Zd ZdZg d¢ZddgZd Zd ZdS )r z<Abstract base class for commands that mess with config files))ú global-configÚgz0save options to the site-wide distutils.cfg file)úuser-configÚuz7save options to the current user's pydistutils.cfg file)z filename=r>