/opt/alt/python36/lib64/python3.6/distutils/__pycache__
NameSizeModeActions
archive_util.cpython-36.opt-1.pyc65400644editdlrm
archive_util.cpython-36.opt-2.pyc44890644editdlrm
archive_util.cpython-36.pyc65400644editdlrm
bcppcompiler.cpython-36.opt-1.pyc64940644editdlrm
bcppcompiler.cpython-36.opt-2.pyc61960644editdlrm
bcppcompiler.cpython-36.pyc64940644editdlrm
ccompiler.cpython-36.opt-1.pyc332330644editdlrm
ccompiler.cpython-36.opt-2.pyc168730644editdlrm
ccompiler.cpython-36.pyc333600644editdlrm
cmd.cpython-36.opt-1.pyc150010644editdlrm
cmd.cpython-36.opt-2.pyc89940644editdlrm
cmd.cpython-36.pyc150010644editdlrm
config.cpython-36.opt-1.pyc35000644editdlrm
config.cpython-36.opt-2.pyc30980644editdlrm
config.cpython-36.pyc35000644editdlrm
core.cpython-36.opt-1.pyc68160644editdlrm
core.cpython-36.opt-2.pyc34190644editdlrm
core.cpython-36.pyc68160644editdlrm
cygwinccompiler.cpython-36.opt-1.pyc85210644editdlrm
cygwinccompiler.cpython-36.opt-2.pyc68810644editdlrm
cygwinccompiler.cpython-36.pyc85210644editdlrm
debug.cpython-36.opt-1.pyc2010644editdlrm
debug.cpython-36.opt-2.pyc1910644editdlrm
debug.cpython-36.pyc2010644editdlrm
dep_util.cpython-36.opt-1.pyc27170644editdlrm
dep_util.cpython-36.opt-2.pyc12630644editdlrm
dep_util.cpython-36.pyc27170644editdlrm
dir_util.cpython-36.opt-1.pyc58170644editdlrm
dir_util.cpython-36.opt-2.pyc34290644editdlrm
dir_util.cpython-36.pyc58170644editdlrm
dist.cpython-36.opt-1.pyc342260644editdlrm
dist.cpython-36.opt-2.pyc249200644editdlrm
dist.cpython-36.pyc342260644editdlrm
errors.cpython-36.opt-1.pyc54870644editdlrm
errors.cpython-36.opt-2.pyc28390644editdlrm
errors.cpython-36.pyc54870644editdlrm
extension.cpython-36.opt-1.pyc69630644editdlrm
extension.cpython-36.opt-2.pyc34630644editdlrm
extension.cpython-36.pyc69630644editdlrm
fancy_getopt.cpython-36.opt-1.pyc105160644editdlrm
fancy_getopt.cpython-36.opt-2.pyc76950644editdlrm
fancy_getopt.cpython-36.pyc106660644editdlrm
filelist.cpython-36.opt-1.pyc97880644editdlrm
filelist.cpython-36.opt-2.pyc69070644editdlrm
filelist.cpython-36.pyc98780644editdlrm
file_util.cpython-36.opt-1.pyc59100644editdlrm
file_util.cpython-36.opt-2.pyc37630644editdlrm
file_util.cpython-36.pyc59100644editdlrm
log.cpython-36.opt-1.pyc23120644editdlrm
log.cpython-36.opt-2.pyc22410644editdlrm
log.cpython-36.pyc23120644editdlrm
msvc9compiler.cpython-36.opt-1.pyc173940644editdlrm
msvc9compiler.cpython-36.opt-2.pyc157670644editdlrm
msvc9compiler.cpython-36.pyc174570644editdlrm
msvccompiler.cpython-36.opt-1.pyc145810644editdlrm
msvccompiler.cpython-36.opt-2.pyc129900644editdlrm
msvccompiler.cpython-36.pyc145810644editdlrm
spawn.cpython-36.opt-1.pyc50060644editdlrm
spawn.cpython-36.opt-2.pyc36920644editdlrm
spawn.cpython-36.pyc50060644editdlrm
sysconfig.cpython-36.opt-1.pyc119590644editdlrm
sysconfig.cpython-36.opt-2.pyc84610644editdlrm
sysconfig.cpython-36.pyc119590644editdlrm
text_file.cpython-36.opt-1.pyc84710644editdlrm
text_file.cpython-36.opt-2.pyc33590644editdlrm
text_file.cpython-36.pyc84710644editdlrm
unixccompiler.cpython-36.opt-1.pyc68770644editdlrm
unixccompiler.cpython-36.opt-2.pyc62380644editdlrm
unixccompiler.cpython-36.pyc68770644editdlrm
util.cpython-36.opt-1.pyc155360644editdlrm
util.cpython-36.opt-2.pyc94650644editdlrm
util.cpython-36.pyc155360644editdlrm
version.cpython-36.opt-1.pyc73220644editdlrm
version.cpython-36.opt-2.pyc40270644editdlrm
version.cpython-36.pyc73670644editdlrm
versionpredicate.cpython-36.opt-1.pyc50960644editdlrm
versionpredicate.cpython-36.opt-2.pyc26060644editdlrm
versionpredicate.cpython-36.pyc50960644editdlrm
_msvccompiler.cpython-36.opt-1.pyc135140644editdlrm
_msvccompiler.cpython-36.opt-2.pyc126920644editdlrm
_msvccompiler.cpython-36.pyc135750644editdlrm
__init__.cpython-36.opt-1.pyc3910644editdlrm
__init__.cpython-36.opt-2.pyc1990644editdlrm
__init__.cpython-36.pyc3910644editdlrm
Edit: /opt/alt/python36/lib64/python3.6/distutils/__pycache__/util.cpython-36.pyc (15536B)
3 jf5Q@sdZddlZddlZddlZddlZddlZddlmZddl m Z ddl m Z ddl mZddlmZdd Zd d Zd d ZdaddZddZd(ddZdaaaddZddZd)ddZddZd*ddZd d!Zd+d"d#Z d,d$d%Z!Gd&d'd'Z"dS)-zudistutils.util Miscellaneous utility functions -- anything that doesn't fit into one of the other *util.py modules. N)DistutilsPlatformError)newer)spawn)log)DistutilsByteCompileErrorcCstjdkrnd}tjj|}|d)kr(tjStjjd|}tj|t||j}|dkr\dS|dkrhdStjSd tjkrtjd Stjd kst td  rtjStj \}}}}}|jj d d }|j dd}|j d d}|dddkrd||fS|dddkrV|ddkrd}dt |dd|ddf}ddd} |d| tj 7}n|dd d!krtd||fS|ddd"krd#|||fS|dd$d%krd%}tjd&tj} | j|} | r| j}n>|dd$d'krddl} ddl} | j| jj|||\}}}d(|||fS)*aReturn a string that identifies the current platform. This is used mainly to distinguish platform-specific build directories and platform-specific built distributions. Typically includes the OS name and version and the architecture (as supplied by 'os.uname()'), although the exact information included depends on the OS; eg. for IRIX the architecture isn't particularly important (IRIX only runs on SGI hardware), but for Linux the kernel version isn't particularly important. Examples of returned values: linux-i586 linux-alpha (?) solaris-2.6-sun4u irix-5.3 irix64-6.2 Windows will return one of: win-amd64 (64bit Windows on AMD64 (aka x86_64, Intel64, EM64T, etc) win-ia64 (64bit Windows on Itanium) win32 (all others - specifically, sys.platform is returned) For other non-POSIX platforms, currently just returns 'sys.platform'. ntz bit ()amd64z win-amd64itaniumzwin-ia64_PYTHON_HOST_PLATFORMposixuname/ _-Nlinuxz%s-%ssunosr5solarisz%d.%s32bit64bit)ilz.%sirixaixz%s-%s.%scygwinz[\d.]+darwinz%s-%s-%s)osnamesysversionfindplatformlenlowerenvironhasattrrreplaceintmaxsizerecompileASCIImatchgroup _osx_supportZdistutils.sysconfigget_platform_osx sysconfigget_config_vars)prefixijlookosnamehostreleaser'machinebitnessrel_remr6 distutilsrF3/opt/alt/python36/lib64/python3.6/distutils/util.py get_platformsX            rHcCs~tjdkr|S|s|S|ddkr.td||ddkrFtd||jd}xd|krf|jdqRW|srtjStjj|S)aReturn 'pathname' as a name that will work on the native filesystem, i.e. split it on '/' and put it back together again using the current directory separator. Needed because filenames in the setup script are always supplied in Unix style, and have to be converted to the local convention before we can actually use them in the filesystem. Raises ValueError on non-Unix-ish systems if 'pathname' either starts or ends with a slash. rrzpath '%s' cannot be absoluterzpath '%s' cannot end with '/'.r#)r$sep ValueErrorsplitremovecurdirpathjoin)pathnamepathsrFrFrG convert_pathos       rScCstjdkr._substz\$([a-zA-Z_][a-zA-Z_0-9]*)zinvalid variable '$%s'N)r]r1subKeyErrorrK)sr_r`varrFrFrG subst_varss  reerror: cCs |t|S)N)r^)excr:rFrFrGgrok_environment_errorsrhcCs(tjdtjatjdatjdadS)Nz [^\\\'\"%s ]*z'(?:[^'\\]|\\.)*'z"(?:[^"\\]|\\.)*")r1r2string whitespace _wordchars_re _squote_re _dquote_rerFrFrFrG _init_regexs rncCstdkrt|j}g}d}x`|rtj||}|j}|t|kr\|j|d|P||tjkr|j|d|||dj }d}n||dkr|d|||dd}|d}n||dkrt j||}n*||dkrt j||}nt d|||dkr"t d|||j\}}|d|||d|d||d}|jd }|t|kr"|j|Pq"W|S) aSplit a string up according to Unix shell-like rules for quotes and backslashes. In short: words are delimited by spaces, as long as those spaces are not escaped by a backslash, or inside a quoted string. Single and double quotes are equivalent, and the quote characters can be backslash-escaped. The backslash is stripped from any two-character escape sequence, leaving only the escaped character. The quote characters are stripped from any quoted string. Returns a list of words. NrrTr'"z!this can't happen (bad char '%c')z"bad string (mismatched %s quotes?)r)rkrnstripr4endr*appendrirjlstriprlrm RuntimeErrorrKspan)rcZwordsposrDrrZbegrFrFrG split_quoteds@         ,   rxcCsP|dkr6d|j|f}|dddkr6|ddd}tj||sL||dS) aPerform some action that affects the outside world (eg. by writing to the filesystem). Such actions are special because they are disabled by the 'dry_run' flag. This method takes care of all that bureaucracy for you; all you have to do is supply the function to call and an argument tuple for it (to embody the "external action" being performed), and an optional message to print. Nz%s%rrz,)rr ry)__name__rinfo)funcargsmsgverbosedry_runrFrFrGexecutes  rcCs2|j}|dkrdS|dkr dStd|fdS)zConvert a string representation of truth to true (1) or false (0). True values are 'y', 'yes', 't', 'true', 'on', and '1'; false values are 'n', 'no', 'f', 'false', 'off', and '0'. Raises ValueError if 'val' is anything else. yyesttrueon1rnnoffalseoff0rzinvalid truth value %rN)rrrrrr)rrrrrr)r+rK)valrFrFrG strtobool0s rrcCsTddl}tjrtd|dkr*do(|dk}|s8yddlm} | d\} } Wn.tk rzddlm} d| d} } YnXtj d| |s| dk rt j | d } n t | d } | j d | j d jtt|d | j d |||||f| jtjg}|j|j|j| t||dtt j| fd| |dnddlm}x|D]}|dddkrhqL|dkr|dkrdn|}tjj||d}n tjj|}|}|r|dt||krtd||f|t|d}|rt j j||}t j j!|}|rL|st"||r.DistutilsRefactoringToolc_stj|f|dS)N)rerror)selfr~r}kwrFrFrG log_errorsz4run_2to3..DistutilsRefactoringTool.log_errorcWstj|f|dS)N)rr{)rr~r}rFrFrG log_messagesz6run_2to3..DistutilsRefactoringTool.log_messagecWstj|f|dS)N)rr)rr~r}rFrFrG log_debugsz4run_2to3..DistutilsRefactoringTool.log_debugN)rz __module__ __qualname__rrrrFrFrFrGDistutilsRefactoringToolsrz lib2to3.fixes)optionsT)r)Zlib2to3.refactorrrZrefactor)files fixer_namesrexplicitrrrrrFrFrGrun_2to3s  rcCsddlm}ddlm}ddlm}|} tj} tj|z | j Wdtj| X| j | j dd<|rx(|j D]} | j } | sqt| j| qtWg} xV| j D]L} tjj|| }|tjj||tjj|| |dd}|dr| j|qWtdd | D|||d | S) zRecursively copy a directory, only copying new and changed files, running run_2to3 over all newly copied Python modules afterward. If you give a template string, it's parsed like a MANIFEST.in. r)mkpath) copy_file)FileListNr)updatecSsg|]}|jjdr|qS)z.py)r+endswith).0fnrFrFrG sz$copydir_run_2to3..)rrr)Zdistutils.dir_utilrZdistutils.file_utilrZdistutils.filelistrr$getcwdchdirfindallZallfilesr splitlinesrqZprocess_template_linerOrPdirnamersr)srcdesttemplaterrrrrrZfilelistrNlineZcopiedfilenameZoutnameresrFrFrGcopydir_run_2to3s4        rc@s$eZdZdZdZdZdZddZdS) Mixin2to3zMixin class for commands that run 2to3. To configure 2to3, setup scripts may either change the class variables, or inherit from individual commands to override how 2to3 is invoked.NcCst||j|j|jS)N)rrrr)rrrFrFrGr,szMixin2to3.run_2to3)rzrr__doc__rrrrrFrFrFrGrs r)rf)Nrr)rrNNrrN)NNN)NNNN)#rr$r1importlib.utilrrir&Zdistutils.errorsrZdistutils.dep_utilrZdistutils.spawnrrErrrHrSrWrYr]rerhrkrlrmrnrxrrrrrrrrFrFrFrGs@     ]  =