MOON
Server: Apache/2.2.34 (Unix) mod_ssl/2.2.34 OpenSSL/0.9.8e-fips-rhel5 mod_bwlimited/1.4 FrontPage/5.0.2.2635
System: Linux server.asjudinet.com 2.6.32-042stab141.3 #1 SMP Fri Nov 15 22:45:34 MSK 2019 i686
User: asjudine (504)
PHP: 5.2.17
Disabled: NONE
Upload Files
File: //proc/3/root/usr/lib/python2.4/Demo/pdist/RCSProxy.pyo
mò
‚=5Dc@s¾dZdkZdkZdkZdkZdkZdkZdkZdfd„ƒYZdei	efd„ƒYZ
de
eifd„ƒYZd„Z
d	„Zed
joeƒndS(sRCS Proxy.

Provide a simplified interface on RCS files, locally or remotely.
The functionality is geared towards implementing some sort of
remote CVS like utility.  It is modeled after the similar module
FSProxy.

The module defines two classes:

RCSProxyLocal  -- used for local access
RCSProxyServer -- used on the server side of remote access

The corresponding client class, RCSProxyClient, is defined in module
rcsclient.

The remote classes are instantiated with an IP address and an optional
verbosity flag.
Nt
DirSupportcBsetZd„Zd„Zd„Zd„Zd„Zd„Zdd„Z	d„Z
d	„Zd
„ZRS(NcCs
g|_dS(N(tselft	_dirstack(R((t)/usr/lib/python2.4/Demo/pdist/RCSProxy.pyt__init__!scCs|iƒdS(N(Rt_close(R((Rt__del__$scCs x|io|iƒqWdS(N(RRtback(R((RR's
cCs
tiƒS(N(tostgetcwd(R((Rtpwd+scCs-tiƒ}ti|ƒ|ii|ƒdS(N(RR	tsavetchdirtnameRRtappend(RR
R((Rtcd.s
cCsB|iptid‚n|id}ti|ƒ|id=dS(Nsempty directory stackiÿÿÿÿ(RRRterrortdirR(RR((RR3s



cCs7titiƒ}ttii|ƒ}|i||ƒS(N(
RtlistdirtcurdirtfilestfiltertpathtisdirRt_filtertpat(RRR((Rtlistsubdirs:scCstii|ƒS(N(RRRR
(RR
((RR?scCsti|dƒdS(Niÿ(RtmkdirR
(RR
((RRBscCsti|ƒdS(N(RtrmdirR
(RR
((RREs(
t__name__t
__module__RRRR
RRtNoneRRRR(((RRs								t
RCSProxyLocalcBshtZd„Zd„Zdd„Zdd„Zd„Zd„Zdd„Z	dd„Z
dd	„ZRS(
NcCs!tii|ƒti|ƒdS(N(trcslibtRCSRRR(R((RRKscCs!ti|ƒtii|ƒdS(N(RRRR!R"(R((RROs
cCs|i|i|ƒS(N(Rt_listtsumtlist(RR%((RtsumlistSscCs|i|i|ƒS(N(Rt_dictR$R%(RR%((RtsumdictVscCsl|i|ƒ}dd}tiƒ}x-|i|ƒ}|pPn|i
|ƒq(W|i|ƒ|iƒS(Niii(
Rt_opentname_revtft
BUFFERSIZEtmd5tnewR$treadtbuffertupdatet
_closepipetdigest(RR*R,R+R0R$((RR$Ys

cCs,|i|ƒ}|iƒ}|i|ƒ|S(N(RR)R*R+R/tdataR2(RR*R4R+((Rtgetes
cCs\|i|ƒ\}}t|dƒ}|i|ƒ|i	ƒ|i
||ƒ|i|ƒdS(Ntw(
Rt	_unmangleR*R
trevtopenR+twriteR4tclosetcheckintmessaget_remove(RR*R4R=R
R+R8((Rtputks

cCs‡|djo|iƒ}ng}x]|D]U}y|i|||ƒfƒWq*ti	t
fj
o|i|dfƒq*Xq*W|S(s¡INTERNAL: apply FUNCTION to all files in LIST.

        Return a list of the results.

        The list defaults to all files in the directory if None.

        N(R%RRt	listfilestresR
RtfunctionRRtIOError(RRBR%R
RA((RR#ss
cCsk|djo|iƒ}nh}xA|D]9}y||ƒ||<Wq*tit	fj
oq*Xq*W|S(s±INTERNAL: apply FUNCTION to all files in LIST.

        Return a dictionary mapping files to results.

        The list defaults to all files in the directory if None.

        N(
R%RRR@tdictR
RBRRRC(RRBR%R
RD((RR'…s
	(RRRRRR&R(R$R5R?R#R'(((RR Is				tRCSProxyServercBs)tZeid„Zd„Zd„ZRS(NcCs'ti|ƒtii|||ƒdS(N(R RRtservertSecureServertaddresstverbose(RRHRI((RRšs
cCs!tii|ƒti|ƒdS(N(RFRGRRR (R((RRžscCs0tii|ƒx|io|iƒqWdS(N(RFRGt_serveRRR(R((RRJ¢s
(RRRFtVERBOSERRRJ(((RRE˜s	cCs`dk}dk}|ido|i|idƒ}nd}td|fƒ}|iƒdS(Niit(tstringtsystargvtatoitportREtproxyt_serverloop(RNRRRMRQ((Rttest_server¨s		cCsàdk}|idp&|ido0|idddjotƒ|idƒntƒ}|id}t||ƒoJt||ƒ}t
|ƒot|t|idƒƒGHqÜt
|ƒGHnd|GH|idƒdS(Niit
0123456789is%s: no such attribute(RNRORTtexitR RRtwhatthasattrtgetattrtattrtcallabletapplyttupletrepr(RWRZRNRR((Rttest³s	5	

	t__main__(t__doc__RFR-RtfnmatchRMttempfileR!RR"R RGRERTR_R(RERMRcRRFR R_R!RbRTRR-((Rt?s							*O