Files
Home-AssistantConfig/deps/setuptools/command/__pycache__/setopt.cpython-34.pyc

36 lines
4.8 KiB
Plaintext
Raw Normal View History

2016-10-11 16:42:06 +00:00
<EFBFBD>
<EFBFBD><EFBFBD><EFBFBD>W<EFBFBD><00>@s<>ddlmZddlmZddlmZddlZddlZddlmZddl m
Z
ddd d
gZ d d d<00>Z d dd<00>Z Gdd <00>d e
<00>ZGdd
<00>d
e<00>ZdS)<11>)<01> convert_path)<01>log)<01>DistutilsOptionErrorN)<01> configparser)<01>Command<6E> config_file<6C> edit_config<69> option_base<73>setopt<70>localcCs<>|dkrdS|dkr>tjjtjjtj<00>d<00>S|dkrtjdkr_dpbd}tjjtd |<16><00>St d
|<00><00>d S) 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<66>globalz distutils.cfg<66>user<65>posix<69>.<2E>z~/%spydistutils.cfgz7config_file() type must be 'local', 'global', or 'user'N)
<EFBFBD>os<6F>path<74>join<69>dirname<6D> distutils<6C>__file__<5F>name<6D>
expanduserr<00>
ValueError)<02>kind<6E>dot<6F>r<00>?/tmp/pip-build-fo9udfsu/setuptools/setuptools/command/setopt.pyrs    Fc Cs<>tjd|<00>tj<00>}|j|g<00>x+|j<00>D]\}}|dkrttjd||<00>|j|<00>q9|j|<00>s<>tjd||<00>|j |<00>nx<>|j<00>D]<5D>\}}|dkr&tjd|||<00>|j
||<00>|j |<00>sRtjd||<00>|j|<00>qRq<>tjd||||<00>|j |||<00>q<>Wq9Wtjd|<00>|s<>t |d <00><00>}|j|<00>WdQXndS)
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 %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<00>debugr<00>RawConfigParser<65>read<61>items<6D>info<66>remove_section<6F> has_section<6F> add_section<6F> remove_option<6F>options<6E>set<65>open<65>write) <09>filename<6D>settings<67>dry_run<75>opts<74>sectionr(<00>option<6F>value<75>frrrr"s8     
c@sIeZdZdZdddgZddgZd d <00>Zd d<00>ZdS)r z<Abstract base class for commands that mess with config files<65> global-config<69>g<>0save options to the site-wide distutils.cfg file<6C> user-config<69>u<>7save options to the current user's pydistutils.cfg file<6C> filename=r3<00>-configuration file to use (default=setup.cfg)cCsd|_d|_d|_dS)N)<03> global_config<69> user_configr,)<01>selfrrr<00>initialize_options]s  zoption_base.initialize_optionscCs<>g}|jr%|jtd<00><00>n|jrD|jtd<00><00>n|jdk rf|j|j<00>n|s<>|jtd<00><00>nt|<00>dkr<>td|<00><00>n|\|_dS)Nr r r <00>z/Must specify only one configuration file option)r<<00>appendrr=r,<00>lenr)r><00> filenamesrrr<00>finalize_optionsbs   zoption_base.finalize_optionsN)r4r5r6)r7r8r9)r:r3r;)<08>__name__<5F>
__module__<EFBFBD> __qualname__<5F>__doc__<5F> user_options<6E>boolean_optionsr?rDrrrrr Ms    c@sieZdZdZdZddddgejZejd gZdd<00>Zdd<00>Z dd<00>Z
dS)r
z#Save command-line options to a filez1set an option in setup.cfg or another config file<6C>command=<3D>c<>command to set an option for<6F>option=<3D>o<> option to set<65>
set-value=<3D>s<>value of the option<6F>remove<76>r<>remove (unset) the valuecCs5tj|<00>d|_d|_d|_d|_dS)N)r r?<00>commandr1<00> set_valuerT)r>rrrr?<00>s
    zsetopt.initialize_optionscCsftj|<00>|jdks+|jdkr:td<00><00>n|jdkrb|j rbtd<00><00>ndS)Nz%Must specify --command *and* --optionz$Must specify --set-value or --remove)r rDrWr1rrXrT)r>rrrrD<00>s
 zsetopt.finalize_optionscCs=t|jii|j|jjdd<00>6|j6|j<00>dS)N<>-<2D>_)rr,rXr1<00>replacerWr.)r>rrr<00>run<75>s #z
setopt.runN)rKrLrM)rNrOrP)rQrRrS)zremoverUrV) rErFrGrH<00> descriptionr rIrJr?rDr\rrrrr
ts 
  )<10>distutils.utilrrr<00>distutils.errorsrrZsetuptools.extern.six.movesr<00>
setuptoolsr<00>__all__rrr r
rrrr<00><module>s  +'