config root man

Current Path : /compat/linux/proc/self/root/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 : //compat/linux/proc/self/root/usr/local/lib/python2.5/test/test_codeccallbacks.pyo

hRc	@s3ddkZddkZddkZddkZddkZddkZdfdYZdefdYZ	defdYZ
defd	YZd
efdYZ
defd
YZdefdYZdefdYZdeifdYZdZedjoendS(iNt	PosReturncBseZdZdZRS(cCs
d|_dS(Ni(tpos(tself((s4/usr/local/lib/python2.5/test/test_codeccallbacks.pyt__init__scCsc|i}|}|djot|i|}n||ijot|i|_nd|fS(Niu<?>(Rtlentobjecttstart(Rtexctoldpostrealpos((s4/usr/local/lib/python2.5/test/test_codeccallbacks.pythandle
s	
(t__name__t
__module__RR
(((s4/usr/local/lib/python2.5/test/test_codeccallbacks.pyRs	tBadStartUnicodeEncodeErrorcBseZdZRS(cCs)ti|dddddg|_dS(Ntasciiuiitbad(tUnicodeEncodeErrorRR(R((s4/usr/local/lib/python2.5/test/test_codeccallbacks.pyRs(RRR(((s4/usr/local/lib/python2.5/test/test_codeccallbacks.pyR
stBadObjectUnicodeEncodeErrorcBseZdZRS(cCs)ti|dddddg|_dS(NRuiiR(RRR(R((s4/usr/local/lib/python2.5/test/test_codeccallbacks.pyRs(RRR(((s4/usr/local/lib/python2.5/test/test_codeccallbacks.pyRstNoEndUnicodeDecodeErrorcBseZdZRS(cCs&ti|ddddd|`dS(NRtiiR(tUnicodeDecodeErrorRtend(R((s4/usr/local/lib/python2.5/test/test_codeccallbacks.pyR#s(RRR(((s4/usr/local/lib/python2.5/test/test_codeccallbacks.pyR"stBadObjectUnicodeDecodeErrorcBseZdZRS(cCs)ti|dddddg|_dS(NRRiiR(RRR(R((s4/usr/local/lib/python2.5/test/test_codeccallbacks.pyR)s(RRR(((s4/usr/local/lib/python2.5/test/test_codeccallbacks.pyR(stNoStartUnicodeTranslateErrorcBseZdZRS(cCs#ti|dddd|`dS(NuiiR(tUnicodeTranslateErrorRR(R((s4/usr/local/lib/python2.5/test/test_codeccallbacks.pyR/s(RRR(((s4/usr/local/lib/python2.5/test/test_codeccallbacks.pyR.stNoEndUnicodeTranslateErrorcBseZdZRS(cCs#ti|dddd|`dS(NuiiR(RRR(R((s4/usr/local/lib/python2.5/test/test_codeccallbacks.pyR5s(RRR(((s4/usr/local/lib/python2.5/test/test_codeccallbacks.pyR4stNoObjectUnicodeTranslateErrorcBseZdZRS(cCs#ti|dddd|`dS(NuiiR(RRR(R((s4/usr/local/lib/python2.5/test/test_codeccallbacks.pyR;s(RRR(((s4/usr/local/lib/python2.5/test/test_codeccallbacks.pyR:stCodecCallbackTestcBs
eZdZdZdZdZdZdZdZdZ	dZ
d	Zd
ZdZ
dZd
ZdZdZdZdZdZdZdZdZdZdZdZdZdZdZdZRS(cCsBd}|i|iddd|i|iddddS(Nuスパモ änd eggsRtxmlcharrefreplaces&&#12473;&#12497;&#12514; &#228;nd eggsslatin-1s!&#12473;&#12497;&#12514; nd eggs(tassertEqualtencode(Rts((s4/usr/local/lib/python2.5/test/test_codeccallbacks.pyttest_xmlcharrefreplaceAscCsd}tid|d}d}|i|idd|d}|i|idd|d}|i|id	d|dS(
Nc
Sst|tptd|ng}xm|i|i|i!D]U}y"|idtit	|WqAt
j
o|idt	|qAXqAWdi||ifS(Nsdon't know how to handle %ru&%s;u&#%d;u(t
isinstanceRt	TypeErrorRRRtappendthtmlentitydefstcodepoint2nametordtKeyErrortjoin(Rtltc((s4/usr/local/lib/python2.5/test/test_codeccallbacks.pytxmlcharnamereplaceSs" stest.xmlcharnamereplaceu«ℜ» = 〈ሴ€〉s0&laquo;&real;&raquo; = &lang;&#4660;&euro;&rang;Rs$&real; = &lang;&#4660;&euro;&rang;slatin-1s&real; = &lang;&#4660;&rang;siso-8859-15(tcodecstregister_errorRR(RR+tsintsout((s4/usr/local/lib/python2.5/test/test_codeccallbacks.pyttest_xmlcharnamereplaceOs	
cCsd}tid|d}d}|i|idd|d}|i|idd|d}|i|id	d|dS(
NcSst|tptd|ng}xA|i|i|i!D])}|iti|dt	|qAWddi
||ifS(Nsdon't know how to handle %ru0x%xu
%su, (R!RR"RRRR#tunicodedatatnameR&R((RR)R*((s4/usr/local/lib/python2.5/test/test_codeccallbacks.pytuninamereplacers'stest.uninamereplaceu¬ሴ€耀sNNOT SIGN, ETHIOPIC SYLLABLE SEE, EURO SIGN, CJK UNIFIED IDEOGRAPH-8000RsEETHIOPIC SYLLABLE SEE, EURO SIGN, CJK UNIFIED IDEOGRAPH-8000slatin-1sAETHIOPIC SYLLABLE SEECJK UNIFIED IDEOGRAPH-8000siso-8859-15(R,R-RR(RR3R.R/((s4/usr/local/lib/python2.5/test/test_codeccallbacks.pyttest_uninamereplaceis		
cCsd}tidjo|tti7}nd}tidjo|dti7}n|i|idd|d}tidjo|dti7}n|i|idd|d	}tidjo|dti7}n|i|id
d|dS(Nua¬ሴ€耀isa\xac\u1234\u20ac\u8000s\U%08xRtbackslashreplacesa\u1234\u20ac\u8000slatin-1sa\u1234\u8000siso-8859-15(tsyst
maxunicodetunichrRR(RR.R/((s4/usr/local/lib/python2.5/test/test_codeccallbacks.pyttest_backslashescapescCsdd}tid|d}d}|i|idd|d}|it|idddS(NcSsct|tptd|n|i|i|i!idod|idfSn|dS(Nsdon't know how to handle %rsui(R!RR"RRRt
startswith(R((s4/usr/local/lib/python2.5/test/test_codeccallbacks.pytrelaxedutf8s
 stest.relaxedutf8tabcüu	abcüsutf-8s(R,R-RtdecodetassertRaisestUnicodeError(RR;R.R/((s4/usr/local/lib/python2.5/test/test_codeccallbacks.pyttest_decoderelaxedutf8s	
cCs)tg}dD]#}|t|d|ifq~}d}d}|iti|d|d|d}|itti|d|d|td	<d
}d}|iti|d|d|d
|td	<|itti|d|d
|td	<|itti|d|dS(NtabcdefghiuabctAABBCCtstrictiuabcAtXYZt?uabcDEFtAABBCCXYZXYZXYZtreplaceuXYZ(	tdictR&tuppertassertEqualsR,tcharmap_encodeR>R?R"(Rt_[1]R*tcharmapR.R/((s4/usr/local/lib/python2.5/test/test_codeccallbacks.pyttest_charmapencodes=##cCs|itdidtidjoqd}|ididdd|ididddtid	||ididd	d
ndS(Ntsunicode-internalicSs(t|tptd|ndS(Nsdon't know how to handle %rui(ui(R!RR"(R((s4/usr/local/lib/python2.5/test/test_codeccallbacks.pythandler_unicodeinternalstignoreuRGu�stest.huiu(R>RR=R6R7RR,R-(RRP((s4/usr/local/lib/python2.5/test/test_codeccallbacks.pyttest_decodeunicodeinternals 	c	Csd}tid|d}tid|d}|i|iddd|i|iddd|id	id
dd|idid
dd
|itiddhdtd<dd|ididdd|ididdddS(NcSst|to%t|totd|ng}t|i|iD]}|dt|i|qP~}ddi	||ifS(Nsdon't know how to handle %ru<%d>u[%s]u(
R!RRR"txrangeRRR&RR((RRLRR)((s4/usr/local/lib/python2.5/test/test_codeccallbacks.pythandler1s
As
test.handler1cSst|tptd|ng}t|i|iD]}|dt|i|q>~}ddi||idfS(Nsdon't know how to handle %ru<%d>u[%s]ui(	R!RR"RSRRR&RR((RRLRR)((s4/usr/local/lib/python2.5/test/test_codeccallbacks.pythandler2sAs
test.handler2tRu[<129>][<128>][<255>]u[<129>][<128>]s\u3042\u3xxxsunicode-escapeuあ[<92><117><51><120>]xxs\u3042\u3xxuあ[<92><117><51><120><120>]tabcuztaiu
z[<98>][<99>]ugüßrkug[<252><223>]rkugüßu
g[<252><223>](R,R-RR=tcharmap_decodeR&R(RRTRUR((s4/usr/local/lib/python2.5/test/test_codeccallbacks.pyttest_callbackss4		%c	Csdddddg}x+|D]#}tid|ti|qWd}|g}|D]}|d|qW~7}xyg}dD]}|||q~D]R}xIdD]A}x8|D]0}y|i||Wqtj
oqXqWqWqWdS(NRCRQRGRR5stest.iuxuあuaäRslatin-1s
iso-8859-1siso-8859-15sutf-8sutf-7sutf-16(uxuあuaä(sasciislatin-1s
iso-8859-1siso-8859-15sutf-8sutf-7sutf-16(R,R-tlookup_errorRR?(	RterrorsterrR)RLt_[2]Rtunitenc((s4/usr/local/lib/python2.5/test/test_codeccallbacks.pyttest_longstringss !)&c
	Cs#|it||d |it||dgdddddg}xtt|D]}x|D]}t|t||joqfng}xItt|D]5}||jo|i|q|i||qW|it||qfWqYW||}	|it|	|dS(Nistoo muchtspamueggsi*g?(	R>R"tNoneRSRttypeR#RJtstr(
Rtexctypetargstmsgt	wrongargstitwrongargtcallargstjR((s4/usr/local/lib/python2.5/test/test_codeccallbacks.pytcheck_exceptionobjectargs/s$
cCs|itdddddgd|itdddddgd|itdd	d
ddgd|itddd
ddgd
|itddd
ddgdtidjo&|itddd
ddgdndS(NRugürkiitouchs@'ascii' codec can't encode character u'\xfc' in position 1: ouchis;'ascii' codec can't encode characters in position 1-3: ouchuüxis@'ascii' codec can't encode character u'\xfc' in position 0: ouchuĀxsB'ascii' codec can't encode character u'\u0100' in position 0: ouchu￿xsB'ascii' codec can't encode character u'\uffff' in position 0: ouchiu𐀀xsF'ascii' codec can't encode character u'\U00010000' in position 0: ouch(RnRR6R7(R((s4/usr/local/lib/python2.5/test/test_codeccallbacks.pyttest_unicodeencodeerrorHs2cCsH|itdddddgd|itdddddgddS(	NRsgrkiiRos8'ascii' codec can't decode byte 0xfc in position 1: ouchis6'ascii' codec can't decode bytes in position 1-2: ouch(RnR(R((s4/usr/local/lib/python2.5/test/test_codeccallbacks.pyttest_unicodedecodeerroriscCs|itddddgd|itddddgd|itddddgd	tid
jo#|itddddgdn|itddd
dgddS(NugürkiiRos5can't translate character u'\xfc' in position 1: ouchugĀrks7can't translate character u'\u0100' in position 1: ouchug￿rks7can't translate character u'\uffff' in position 1: ouchiug𐀀rks;can't translate character u'\U00010000' in position 1: ouchis0can't translate characters in position 1-2: ouch(RnRR6R7(R((s4/usr/local/lib/python2.5/test/test_codeccallbacks.pyttest_unicodetranslateerrorus*c	Cs^|ittid|ittitd|ittitddddddS(Ni*RoRuあii(R>R"R,t
strict_errorst	ExceptionR(R((s4/usr/local/lib/python2.5/test/test_codeccallbacks.pyttest_badandgoodstrictexceptionss
cCs|ittid|ittitd|ititdddddd	|ititdddddd
|ititddddddS(Ni*RoRuあiius(ui(ui(ui(	R>R"R,t
ignore_errorsR?RJRRR(R((s4/usr/local/lib/python2.5/test/test_codeccallbacks.pyttest_badandgoodignoreexceptionss"
cCs|ittid|ittitd|ittit|ittit|ititdddddd
|itit	dddddd|itit
ddddddS(
Ni*RoRuあiiu?su�(u?i(u�i(u�i(R>R"R,treplace_errorsR?RRRJRRR(R((s4/usr/local/lib/python2.5/test/test_codeccallbacks.pyt test_badandgoodreplaceexceptionss2


cCs|ittid|ittitd|ittitddddd|ittitddddd}did|D}|itit	d|dt
|ddid|Dt
|fdS(Ni*RoRsiiuあi	i
icidiii'i'iB0Rcssx|]}t|VqWdS(N(R8(t.0R*((s4/usr/local/lib/python2.5/test/test_codeccallbacks.pys	<genexpr>s	ucss#x|]}dt|VqWdS(u&#%d;N(R&(RzR*((s4/usr/local/lib/python2.5/test/test_codeccallbacks.pys	<genexpr>s	(iii	i
icidiii'i'iB0(R>R"R,txmlcharrefreplace_errorsR?RRR(RJRR(RtcsR((s4/usr/local/lib/python2.5/test/test_codeccallbacks.pyt*test_badandgoodxmlcharrefreplaceexceptionss,
c	Cs|ittid|ittitd|ittitddddd|ittitdddd|ititdddddd|ititdd	dddd|ititdddddd|ititdd
dddd|ititddddddt	i
djoZ|ititdddddd|ititddddddndS(Ni*RoRsiiuあu\u3042uu\x00uÿu\xffuĀu\u0100u￿u\uffffiu𐀀u
\U00010000u􏿿u
\U0010ffff(u\u3042i(u\x00i(u\xffi(u\u0100i(u\uffffi(u
\U00010000i(u
\U0010ffffi(R>R"R,tbackslashreplace_errorsR?RRRJRR6R7(R((s4/usr/local/lib/python2.5/test/test_codeccallbacks.pyt)test_badandgoodbackslashreplaceexceptionssL
c
sdddddddddf	}d}x|D]tidfdx'|D]}|itd
i|dqTWx9ddddfD]%\}}|it|i|dqWq.WdS( Ni*ufooiiitfooRslatin-1s
iso-8859-1siso-8859-15stest.badhandlercsS((((tres(s4/usr/local/lib/python2.5/test/test_codeccallbacks.pyt<lambda>Dsuあssutf-8sutf-7s+x-sunicode-internalt(iii(ufooii(ufooN(ufoo(Rii(RN(R(sasciislatin-1s
iso-8859-1siso-8859-15(sasciis(sutf-8s(sutf-7s+x-(sunicode-internals(RcR,R-R>R"RR=(RtresultstencsR`tbytes((Rs4/usr/local/lib/python2.5/test/test_codeccallbacks.pyttest_badhandlerresults?s.!cCs|ititid|ititid|ititid|ititid|ititiddS(NRCRQRR5(RJR,RsR[RvR{R~(R((s4/usr/local/lib/python2.5/test/test_codeccallbacks.pyttest_lookupYscCsGd}tid|x'dD]}|itdi|dq WdS(NcSs5t|tod|ifSntd|dS(Nu䉂sdon't know how to handle %r(R!RRR"(R((s4/usr/local/lib/python2.5/test/test_codeccallbacks.pyt	unencreplgsstest.unencreplhandlerRs
iso-8859-1siso-8859-15u䉂(sasciis
iso-8859-1siso-8859-15(R,R-R>RR(RRR`((s4/usr/local/lib/python2.5/test/test_codeccallbacks.pyttest_unencodablereplacementfs	cCs3|ittid|ittidddS(Ni*s
test.dummy(R>R"R,R-(R((s4/usr/local/lib/python2.5/test/test_codeccallbacks.pyttest_badregistercalluscCs|ittidS(N(R>R"R,R[(R((s4/usr/local/lib/python2.5/test/test_codeccallbacks.pyttest_badlookupcall|scCs|ittiddS(Nstest.unknown(R>tLookupErrorR,R[(R((s4/usr/local/lib/python2.5/test/test_codeccallbacks.pyttest_unknownhandlersc
Csd}tidjo|d7}ndig}|D]}|t|q5~}tidtix/dD]'}xdD]}|i||q{WqnWdS(Niii
i2idiiii'iPii i@Bustest.xmlcharrefreplaceRsiso-8859-15R(
iii
i2idiiii'iP(ii i@B(sasciisiso-8859-15(sxmlcharrefreplacestest.xmlcharrefreplace(R6R7R(R8R,R-R{R(RtvRLtxRR`R]((s4/usr/local/lib/python2.5/test/test_codeccallbacks.pyttest_xmlcharrefvaluess0c	Cs|itdiddd}tid||itdidd|itdidd|itdidd|itd	idd|itd
idd|itdiddd
}tid||itdiddt}tid|id|_|i	didddd|_|i	didddd|_|it
diddd|_|i	didddd|_|i	didddd|_|it
diddd|_|i	diddddtfdY}|itti
ddhdd<|itti
dd||itti
ddhtidd<dS( NsRstest.unknowncSsdS(Ni*((R((s4/usr/local/lib/python2.5/test/test_codeccallbacks.pytbaddecodereturn1sstest.baddecodereturn1s\sunicode-escapes\x0s\x0ys
\Uffffeeees\uyyyysraw-unicode-escapecSsdS(Nu?(u?N(Rc(R((s4/usr/local/lib/python2.5/test/test_codeccallbacks.pytbaddecodereturn2sstest.baddecodereturn2stest.posreturnis0u<?>0iu<?><?>iiiu<?>iis\uyyyy0tDcBseZdZRS(cSs
tdS(N(t
ValueError(Rtkey((s4/usr/local/lib/python2.5/test/test_codeccallbacks.pyt__getitem__s(RRR(((s4/usr/local/lib/python2.5/test/test_codeccallbacks.pyRsRCi(R>RR=R,R-R"RR
RRJt
IndexErrorRHR?RYRcRR6R7(RRRthandlerR((s4/usr/local/lib/python2.5/test/test_codeccallbacks.pyttest_decodehelpers@										%c
Cs|itdiddd}tid||itdiddd}tid||itdiddt}tid|id	|_|i	d
idddd|_|i	d
iddd
d|_|it
d
iddd|_|i	d
idddd|_|i	d
idddd|_|it
d
iddd|_dtfdY}xwdD]o}|itti
d|hdd<|itti
d|||itti
d|hdd<qWdS(NuÿRstest.unknowncSsdS(Ni*((R((s4/usr/local/lib/python2.5/test/test_codeccallbacks.pytbadencodereturn1sstest.badencodereturn1cSsdS(Nu?(u?N(Rc(R((s4/usr/local/lib/python2.5/test/test_codeccallbacks.pytbadencodereturn2sstest.badencodereturn2stest.posreturniuÿ0s<?>0is<?><?>iiis<?>iiRcBseZdZRS(cSs
tdS(N(R(RR((s4/usr/local/lib/python2.5/test/test_codeccallbacks.pyRs(RRR(((s4/usr/local/lib/python2.5/test/test_codeccallbacks.pyRsRCRGRR5ii,(sstrictsreplacesxmlcharrefreplacesbackslashreplacestest.posreturn(R>RRR,R-R"RR
RRJRRHR?RKRcR(RRRRRR]((s4/usr/local/lib/python2.5/test/test_codeccallbacks.pyttest_encodehelpers8										%cCsxdtfdY}|itdi||itdihtidd<|itdihdd<dS(NRcBseZdZRS(cSs
tdS(N(R(RR((s4/usr/local/lib/python2.5/test/test_codeccallbacks.pyR
s(RRR(((s4/usr/local/lib/python2.5/test/test_codeccallbacks.pyR	suÿii((RHR>Rt	translateR"R6R7(RR((s4/usr/local/lib/python2.5/test/test_codeccallbacks.pyttest_translatehelpers&cCsnhdtd<dtd<dtd<dtd<}x%dD]}d
|}|i|qIWdS(Nu&amp;t&u&lt;t<u&gt;t>u&quot;t"ii
idiuabc<def>ghi(ii
idi(R&R(RRMtnttext((s4/usr/local/lib/python2.5/test/test_codeccallbacks.pyttest_bug828737s
(RRR R0R4R9R@RNRRRZRaRnRpRqRrRuRwRyR}RRRRRRRRRRRR(((s4/usr/local/lib/python2.5/test/test_codeccallbacks.pyR?s:								6			!					%	"	7		
					
	;	5	
cCstiitdS(N(ttestttest_supporttrun_unittestR(((s4/usr/local/lib/python2.5/test/test_codeccallbacks.pyt	test_mainst__main__(ttest.test_supportRtunittestR6R,R$R1RRR
RRRRRRRRtTestCaseRRR(((s4/usr/local/lib/python2.5/test/test_codeccallbacks.pys<module>s0	


Man Man