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/task/3/cwd/usr/lib/python2.4/regsub.pyc
mò
‚=5Dc@sÀdZdkZeideƒeiddeeƒdkZddddd	gZd
„Zd„Z	dd
„Z
dd„Zd„Zdd„Z
had„Zd„Zd„Zd„ZdS(sRegexp-based split and replace using the obsolete regex module.

This module is only for backward compatibility.  These operations
are now provided by the new regular expression module, "re".

sub(pat, repl, str):        replace first occurrence of pattern in string
gsub(pat, repl, str):       replace all occurrences of pattern in string
split(str, pat, maxsplit):  split string using pattern as delimiter
splitx(str, pat, maxsplit): split string using pattern as delimiter plus
                            return delimiters
Ns4the regsub module is deprecated; please use re.sub()tignorettsubtgsubtsplittsplitxtcapwordscCset|ƒ}|i|ƒdjo?|i}|d\}}|| t|||ƒ||}n|S(Ni(
tcompiletpattprogtsearchtstrtregstatbtexpandtrepl(RRRR
RRR	((t/usr/lib/python2.4/regsub.pyRs	&c
Cst|ƒ}d}d}d}	xÜ|i||ƒdjoÂ|i}|d\}}||jo
|jnoZ|	oR|t|ƒjp|i||dƒdjoPn|i}|d\}}n||||!t|||ƒ}|}d}	q!W|||}|S(NRii(RRR	tnewtstarttfirstR
RRR
RtlenRR(
RRRR
RRRR	RR((RR,s$	&0	!icCst|||dƒS(Ni(tintsplitRRtmaxsplit(RRR((RREscCst|||dƒS(Ni(RRRR(RRR((RROscCst|ƒ}
g}d}	}d}xÊ|
i||ƒdjo°|
i	}|d\}}||jo&|d}|t|ƒjoPqêq%|i
||	|!ƒ|o|i
|||!ƒn|}	}|d}|o||joPq%q%W|i
||	ƒ|S(Nii(RRR	tresRtnextt
splitcountR
RRR
RRtappendtretainR(RRRRR
RRRRRR	R((RRTs*
	

	


s[^a-zA-Z0-9_]+cCsSt||ƒ}x4tdt|ƒdƒD]}||iƒ||<q(Wdi|ƒS(NiiR(	RRRtwordstrangeRtit
capitalizetjoin(RRRR((RRns
cCsit|ƒtdƒjo|Sn|tiƒf}|tjot|}nti|ƒ}t|<|S(NR(ttypeRtregext
get_syntaxtkeytcacheR	R(RR%R	((RR…s
cCs
hadS(N(R&(((Rtclear_cachesc	Csd|jo|Snd}d}tdƒ}xä|t|ƒjoÐ||}|d}|djp|t|ƒjo||}q0||}|d}d|jo
djno/|t|ƒ|\}}||||!}q0|djo||}q0|d|}q0W|S(Ns\Rit0it9(RRRtordtord0RtcRR
RR(	RRRR
R,RRRR+((RR›s$
 
cCs#dk}|ido|id}nd}xî|iiƒo|iidƒn|iiƒ}|pPn|ddjo|d }nt	||ƒ}t|ƒdjodGHdGt|ƒGHq1nt	||ƒ\}}}d	Gtt|||ƒƒGHd
Gtt|||ƒƒGHq1WdS(Nis[ 	
]+s--> iÿÿÿÿs
isSorry, not three fieldsssplit:ssub :sgsub:(tsystargvtdelpattstdintisattytstderrtwritetreadlinetlineRtfieldsRtreprRRRRR(RR/R6R-RRR5((Rttest´s*	(t__doc__twarningstwarntDeprecationWarningtfilterwarningst__name__R#t__all__RRRRRRR&RR'RR8(
R#RRR?R:R'RRRRR8RR((Rt?s"