HEX

Warning: set_time_limit() [function.set-time-limit]: Cannot set time limit - prohibited by configuration in /home/u547966/brikov.ru/www/wp-content/plugins/admin-menu-editor/menu-editor.php on line 745
Server: Apache
System: Linux 4.19.0-0.bpo.9-amd64 x86_64 at red40
User: u547966 (5490)
PHP: 5.3.29-mh2
Disabled: syslog, dl, popen, proc_open, proc_nice, proc_get_status, proc_close, proc_terminate, posix_mkfifo, chown, chgrp, accelerator_reset, opcache_reset, accelerator_get_status, opcache_get_status, pcntl_alarm, pcntl_fork, pcntl_waitpid, pcntl_wait, pcntl_wifexited, pcntl_wifstopped, pcntl_wifsignaled, pcntl_wifcontinued, pcntl_wexitstatus, pcntl_wtermsig, pcntl_wstopsig, pcntl_signal, pcntl_signal_dispatch, pcntl_get_last_error, pcntl_strerror, pcntl_sigprocmask, pcntl_sigwaitinfo, pcntl_sigtimedwait, pcntl_exec, pcntl_getpriority, pcntl_setpriority
Upload Files
File: //usr/share/python/debpython/namespace.pyc
ó
úO‡Xc@€sëddlmZddlZddlmZmZmZmZddlm	Z	m
Z
mZmZm
Z
ddlmZmZddlmZddlmZmZejeƒZdd„Zedd	„ƒZddd
„Zd„ZdS(iÿÿÿÿ(twith_statementN(tenvirontlistdirtremovetrmdir(tdirnametexiststjointgetsizetsplit(tPopentPIPE(t
PUBLIC_DIR_RE(tmemoizetsitedircC€slt|pgƒ}xS|D]K}t|dƒ4}x*|D]"}|r8|j|jƒƒq8q8WWdQXqW|S(s#Parse namespace_packages.txt files.trN(tsettopentaddtstrip(tfpathstothertresulttfpathtfptline((s(/usr/share/python/debpython/namespace.pytparse"s

$cC€sµd}dtjddƒ}|rLt||ƒ}t|ƒrƒ|g}qƒn7t|ƒrƒgt|ƒD]}t||ƒ^qe}n|r¨td„t|ƒDƒƒ}n	tƒ}|S(s~Return a set of namespaces to regenerate/clean.

    :param package: limit namespaces to the ones needed by given package
    s%s/usr/share/python/ns/tDESTDIRtcs€s!|]}|jddƒVqdS(t.t/N(treplace(t.0ti((s(/usr/share/python/debpython/namespace.pys	<genexpr>AsN(tNoneRtgetRRRRR(tpackageRtnsdirRR!R((s(/usr/share/python/debpython/namespace.pytload-s+	cc€sU|dk	r-t|ƒ}tƒ}tƒ}nx/|D]'}|V|dkrQq4nt|ƒ}||kr4|j|ƒtj|ƒ}|r[|jƒ}	x¾||	krT|t|	ƒd}
|
|kr4t	|dƒ}|t
kr$yt|dƒjƒWn!t
k
rtjd|ƒq1X|Vq4|j|ƒn|j|ƒt|ƒd}qšWq[q4q4W|tkrQ|rQtddj	|ƒdt
d	tƒ}|jƒ\}
}xF|
jƒD]8}|jd
dƒd}||krµ|j|ƒqµqµWx]|D]R}yt|ƒWn6ttfk
rD}tjd|ƒtj|ƒqøX|VqøWndS(
s)Add __init__.py files to given generator.is__init__.pytascannot create %sis/usr/bin/dpkg -S %s 2>/dev/nullt tshelltstdouts: scannot remove %sN(R"R&RRRRtmatchtgrouptlenRtTrueRtcloset	ExceptiontlogterrorR	tFalseR
Rtcommunicatet
splitlinesRtIOErrortOSErrortdebug(tfilesR$tactiont
namespacestalready_processedtremoval_candidatestfntdpathtmt
public_dirtns_dirRtprocessR*tstderrRtnste((s(/usr/share/python/debpython/namespace.pytadd_namespace_filesGsT	




c	C€s¯t|tƒst|ƒ}ntƒ}x”|D]Œ}xƒ|D]{}tt||ƒ|jdƒŒ}t|dƒ}t|ƒsƒq;nt|ƒdkr;tjd|ƒ|j	|ƒPq;q;Wq.W||}xà|D]Ø}xp|D]h}tt||ƒ|jdƒŒ}t|dƒ}t|ƒrÜt
|ƒt|ƒsDt|ƒqDqÜqÜWtd|d|jdƒŒ}t|dƒ}t|ƒrÏt
|ƒt|ƒs§t|ƒq§qÏqÏW|S(s8Remove empty __init__.py files for requested namespaces.Rs__init__.pyis)file not empty, cannot share %s namespacetdebiansusr/share/pyshared(
t
isinstanceRRRR	RRR1twarningRRRR(	R$R;tversionstkeepREtversionRRR?((s(/usr/share/python/debpython/namespace.pytremove_from_packages:	

!



!

(t
__future__RtloggingtosRRRRtos.pathRRRRR	t
subprocessR
Rtdebpython.pydistRtdebpython.toolsR
Rt	getLoggert__name__R1R"RR&RGRN(((s(/usr/share/python/debpython/namespace.pyt<module>s"(8