config root man

Current Path : /usr/local/lib/python2.5/test/

FreeBSD hs32.drive.ne.jp 9.1-RELEASE FreeBSD 9.1-RELEASE #1: Wed Jan 14 12:18:08 JST 2015 root@hs32.drive.ne.jp:/sys/amd64/compile/hs32 amd64
Upload File :
Current File : //usr/local/lib/python2.5/test/test_multibytecodec_support.pyc

³ò
h”Rc
@sÊddkZddkZddkZddkZddkZddklZddklZdd
d„ƒYZ	e
dƒdjo"eZd„Ze
Zd	„Z
nd
eifd„ƒYZd„ZdS(iÿÿÿÿN(ttest_support(tStringIOtTestBasecBsÈeZdZdZdZdZdZdZdZ	dZ
d„Zd„Zd„Z
d„Zd„Zd	„Zd
„Zd„Zd„Zd
„Zd„Zd„Zd„Zd„Zd„Zd„ZRS(tiiuí»®cCs‡|idjoti|iƒ|_n|ii|_|ii|_|ii|_|ii	|_
|ii|_|ii|_dS(N(
tcodectNonetcodecstlookuptencodingtencodetdecodetstreamreadertreadertstreamwritertwritertincrementalencodertincrementaldecoder(tself((s</usr/local/lib/python2.5/test/test_multibytecodec_support.pytsetUpscCs¢x›tg}|iD]}|t|ƒiƒq~ŒD]c\}}|i|ƒd}|i||idƒƒ|io!|i||i|ƒdƒq7q7WdS(Nisutf-8(tzipttstringRt	readlinesR
tassertEqualt
roundtriptestR	(Rt_[1]tftnativetutf8tu((s</usr/local/lib/python2.5/test/test_multibytecodec_support.pyttest_chunkcoding!s
*
cCs”x|iD]‚\}}}t|ƒtdƒjo
|i}n
|i}|o'|||ƒd}|i||ƒq
|it|||ƒq
WdS(NRi(t
codecteststtypeR
R	RtassertRaisestUnicodeError(Rtsourcetschemetexpectedtfunctresult((s</usr/local/lib/python2.5/test/test_multibytecodec_support.pyttest_errorhandle)s

	cCs<|iodSnd}|i|i|dƒddƒdS(Nuଓଣୠ nd eggstxmlcharrefreplaceis&#2835;&#2851;&#2912; nd eggs(thas_iso10646RR	(Rts((s</usr/local/lib/python2.5/test/test_multibytecodec_support.pyttest_xmlcharrefreplace5s
csŽ|iodSnddkl‰‡fd†}tid|ƒ|io|i\}}n
d}d}|i|i|dƒd|ƒdS(Niÿÿÿÿ(tcodepoint2namecsªt|tƒptd|ƒ‚ng}xg|i|i|i!D]O}t|ƒˆjo|idˆt|ƒƒqA|idt|ƒƒqAWdi|ƒ|ifS(Nsdon't know how to handle %ru&%s;u&#%d;u(	t
isinstancetUnicodeEncodeErrort	TypeErrortobjecttstarttendtordtappendtjoin(texctltc(R,(s</usr/local/lib/python2.5/test/test_multibytecodec_support.pytxmlcharnamereplaceEsstest.xmlcharnamereplaceu«ℜ» = 〈ሴ〉s*&laquo;&real;&raquo; = &lang;&#4660;&rang;i(R)thtmlentitydefsR,Rtregister_errortxmlcharnametestRR	(RR9tsintsout((R,s</usr/local/lib/python2.5/test/test_multibytecodec_support.pyttest_customreplace_encode?s

csn‡fd†}tid|ƒxHdddggdtƒddfD]"‰|it|i|idƒqDWdS(Ncs
ˆ|ifS(N(R2(R6(tret(s</usr/local/lib/python2.5/test/test_multibytecodec_support.pyt	myreplace[sstest.cjktestiiitstringR(RR;RR0R R/R	tunmappedunicode(RRA((R@s</usr/local/lib/python2.5/test/test_multibytecodec_support.pyttest_callback_wrong_objectsZs%cCsyd„}tid|ƒ|i|id|iddƒdƒd„}tid|ƒ|it|i|idƒdS(	NcSsdt|iƒfS(Nux(tlongR2(R6((s</usr/local/lib/python2.5/test/test_multibytecodec_support.pyRAdsstest.cjktestuabcduefght	abcdxefghi	cSsdtidfS(Nuxi(tsystmaxint(R6((s</usr/local/lib/python2.5/test/test_multibytecodec_support.pyRAjs(RFi	(RR;RR	RCR t
IndexError(RRA((s</usr/local/lib/python2.5/test/test_multibytecodec_support.pyttest_callback_long_indexcs	
	cCs9d„}tid|ƒ|it|i|idƒdS(NcSsdS(Nux(uxN(R(R6((s</usr/local/lib/python2.5/test/test_multibytecodec_support.pyRAqsstest.cjktest(RR;R R/R	RC(RRA((s</usr/local/lib/python2.5/test/test_multibytecodec_support.pyttest_callback_None_indexps	csS‡fd†‰dˆ_tidˆƒ|i|id|iddƒdƒdS(	Ncs8ˆidjoˆid8_dSnd|ifSdS(NiiuREPLACEDuTERMINAL(uREPLACEDi(tlimitR2(R6(RA(s</usr/local/lib/python2.5/test/test_multibytecodec_support.pyRAxsistest.cjktestuabcduefght4abcdREPLACEDabcdREPLACEDabcdREPLACEDabcdTERMINALefghi	(RMi	(RLRR;RR	RC(R((RAs</usr/local/lib/python2.5/test/test_multibytecodec_support.pyttest_callback_backward_indexws	cCsDd„}tid|ƒ|i|id|iddƒdƒdS(NcSsd|idfS(NuREPLACEDi(R2(R6((s</usr/local/lib/python2.5/test/test_multibytecodec_support.pyRA…sstest.cjktestuabcduefghtabcdREPLACEDghi	(ROi	(RR;RR	RC(RRA((s</usr/local/lib/python2.5/test/test_multibytecodec_support.pyttest_callback_forward_index„s	cCs9d„}tid|ƒ|it|i|idƒdS(NcSsdS(NuTERMid(uTERMid((R6((s</usr/local/lib/python2.5/test/test_multibytecodec_support.pyRAŒsstest.cjktest(RR;R RIR	RC(RRA((s</usr/local/lib/python2.5/test/test_multibytecodec_support.pyttest_callback_index_outofbound‹s	cCsìtidƒ}xÖdgtddƒdddddgD]«}|t|idƒƒ}tƒ}|iƒ}xW|dj	o|i|ƒ}n
|iƒ}|pPn|i|ƒ}|i	|ƒqp|i
|iƒ|id	ƒq9WdS(
Nsutf-8ii!i@i€iiii(Rt	getreaderRtrangeRRRtreadR	twriteRtgetvalue(Rt
UTF8Readertsizehinttistreamtostreamtencodertdatate((s</usr/local/lib/python2.5/test/test_multibytecodec_support.pyttest_incrementalencoder’s 	
cCsÒtidƒ}x¼ddgtddƒddddd	gD]Ž}t|id
ƒ}|tƒƒ}|iƒ}x:|i|ƒ}|pPqs|i|ƒ}|i	|ƒqs|i
|iƒ|idƒq<WdS(Nsutf-8iÿÿÿÿii!i@i€iiii(Rt	getwriterRRSRRRRTR
RURRV(Rt
UTF8WriterRXRYRZtdecoderR\R((s</usr/local/lib/python2.5/test/test_multibytecodec_support.pyttest_incrementaldecoder¦scCsÄ|i}|iƒ}|it|i|tƒd|_|i|i|tƒdƒ|iƒd„}t	i
d|ƒd|_|i|i|tƒdƒd|_|i|i|tƒdƒdS(NtignoreRcSs
d|ifS(Nucalled(R2(R6((s</usr/local/lib/python2.5/test/test_multibytecodec_support.pyttempreplaceÁsstest.incremental_error_callbacktcalled(RCRR R.R	tTrueterrorsRtresetRR;(RtinvR]Rd((s</usr/local/lib/python2.5/test/test_multibytecodec_support.pyt&test_incrementalencoder_error_callback·s		
			cCstidƒ}xîdddgD]Ý}xÔddgtddƒdd	d
ddgD]¦}|it|id
ƒƒ}|tƒƒ}t||ƒ}xF||ƒ}|pPn|djo|i|ƒq•|i	|ƒq•|i
|iƒ|idƒqRWqWdS(Nsutf-8RTtreadlineRiÿÿÿÿii!i@i€iiii(RR_RRSRRRtgetattrt
writelinesRURRV(RR`tnameRXRYRZR%R\((s</usr/local/lib/python2.5/test/test_multibytecodec_support.pyttest_streamreaderËs"
c	Csd
}tidƒ}xü|D]ô}xëdgtddƒddd	d
dgD]À}|t|idƒƒ}|itƒƒ}t||ƒ}x`|dj	o||ƒ}n
|ƒ}|pPn|djo|i|ƒq|i	|ƒq|i
|iƒ|idƒqLWqWdS(NRTRkRsutf-8ii!i@i€iiii(sreadsreadlines	readlines(RRRRRSRRRRlRmRURRV(	Rt	readfuncsRWRnRXRYRZR%R\((s</usr/local/lib/python2.5/test/test_multibytecodec_support.pyttest_streamwriterÞs(
	
N(t__name__t
__module__RRRRRRR)R<RCRRR'R+R?RDRJRKRNRPRQR^RbRjRoRq(((s</usr/local/lib/python2.5/test/test_multibytecodec_support.pyRs0	
			
				
		
						uð’…icCsK|djo0td|dd?ƒtd|dd@ƒSnt|ƒSdS(NiiØi
iÜiÿ(t_unichr(tv((s</usr/local/lib/python2.5/test/test_multibytecodec_support.pytunichrøs
cCsQt|ƒdjo0dt|dƒdd>t|dƒdSnt|ƒSdS(NiiiiØi
iiÜ(tlent_ordR3(R8((s</usr/local/lib/python2.5/test/test_multibytecodec_support.pyR3ÿstTestBase_MappingcBsYeZgZgZgZd„Zd„Zd„Zd„Zd„Z	d„Z
d„ZRS(cOs$tii|||Ž|iƒdS(N(tunittesttTestCaset__init__topen_mapping_file(Rtargstkw((s</usr/local/lib/python2.5/test/test_multibytecodec_support.pyR|scCsti|iƒS(N(Rtopen_urlresourcet
mapfileurl(R((s</usr/local/lib/python2.5/test/test_multibytecodec_support.pyR}scCs/|iidƒo|iƒn|iƒdS(Ns.xml(Rtendswitht_test_mapping_file_ucmt_test_mapping_file_plain(R((s</usr/local/lib/python2.5/test/test_multibytecodec_support.pyttest_mapping_filescCsºd„}h}x¤|iƒD]–}|pPn|idƒdiƒiƒ}t|ƒdjoqnt|dƒ}|djot|d@ƒ}nÇ|djoFt|d?ƒt|d	?d@ƒt|d
?d@ƒt|d@ƒ}nt|djo4t|d	?ƒt|d
?d@ƒt|d@ƒ}n3|djo"t|d
?ƒt|d@ƒ}nq||d
ƒ}t|ƒdjp|i|ƒoqn|||<|i||ƒqWdS(NcSs(ditttt|idƒƒƒƒS(ut+(R5tmapRvtevaltsplit(R*((s</usr/local/lib/python2.5/test/test_multibytecodec_support.pyt<lambda>st#iiiiÿiiiiiiiiýÿ(	R}R‰tstripRwRˆtchrR3thas_keyt
_testpoint(Rtunichrsturt_watlineR\tcsetvaltcsetchtunich((s</usr/local/lib/python2.5/test/test_multibytecodec_support.pyR„s0	


F
4
"#
cCsƒ|iƒiƒ}tid|ƒ}xX|D]P\}}tt|dƒƒ}did„|iƒDƒƒ}|i||ƒq+WdS(Ns'<a u="([A-F0-9]{4})" b="([0-9A-F ]+)"/>iRcss(x!|]}tt|dƒƒVqWdS(iN(Rtint(t.0R8((s</usr/local/lib/python2.5/test/test_multibytecodec_support.pys	<genexpr>=s	(	R}RTtretfindallRvR–R5R‰R(RtucmdatatuctunitcodedR•tcodech((s</usr/local/lib/python2.5/test/test_multibytecodec_support.pyRƒ8scCs%x|iD]}|i|Œq
WdS(N(tsupmapsR(Rtmapping((s</usr/local/lib/python2.5/test/test_multibytecodec_support.pyttest_mapping_supplemental@s
cCsp||f|ijo |i|i|iƒ|ƒn||f|ijo |it||iƒ|ƒndS(N(tpass_enctestRR	Rtpass_dectesttunicode(RR”R•((s</usr/local/lib/python2.5/test/test_multibytecodec_support.pyRDs (RrRsR¢R£RŸR|R}R…R„RƒR¡R(((s</usr/local/lib/python2.5/test/test_multibytecodec_support.pyRys				 		cCsddkl}|i|S(Niÿÿÿÿ(tcjkencodings_test(ttestR¥t
teststring(RR¥((s</usr/local/lib/python2.5/test/test_multibytecodec_support.pytload_teststringJs((RGRtos.pathtosRzR˜R¦RRRRwRvRtR3RxR{RyR¨(((s</usr/local/lib/python2.5/test/test_multibytecodec_support.pys<module>s$ê	
D

Man Man