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_codecs.pyc

hRcm@sddklZddklZddkZddkZddkZddkZddkZde	fdYZ
deifdYZdefd	YZ
d
efdYZdefd
YZdefdYZdefdYZdeifdYZdeifdYZdeifdYZdefdYZdeifdYZdeifdYZddddddddd	d
ddd
ddddddgZx0eD](ZeedDjoeeGHqqWdEeifdFYZdGeifdHYZddddddddddddd d!d"d#d$d%d&d'd(d)d*d+d,d-d.d/d0d1d2d3d4d5d6d7d8d9d:d;d<d=d>d?d@g-ZdeifdYZ deifdYZ!deifdYZ"deifdYZ#deifdYZ$deifdYZ%ddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddgdZ&e'edoe&i(dndddgZ)ddddgZ*e*Z+yddk,Z,Wne-j
onXe&i(de*i(dyddk.Z.Wne-j
onXe&i(de*i(ddeifdYZ/deifdYZ0deifdYZ1deifdYZ2dZ3e4djoe3ndS(Ai(twith_statement(ttest_supportNtQueuecBs,eZdZdZdZddZRS(sF
    queue: write bytes at one end, read bytes from the other end
    cCs
d|_dS(Nt(t_buffer(tself((s,/usr/local/lib/python2.5/test/test_codecs.pyt__init__scCs|i|7_dS(N(R(Rtchars((s,/usr/local/lib/python2.5/test/test_codecs.pytwritesicCsL|djo|i}d|_|Sn"|i| }|i||_|SdS(NiR(R(Rtsizets((s,/usr/local/lib/python2.5/test/test_codecs.pytreads
		
(t__name__t
__module__t__doc__RRR(((s,/usr/local/lib/python2.5/test/test_codecs.pyRs		tReadTestcBs>eZdZdZdZdZdZdZRS(c
Cs!t}ti|i|}d}xVt|i|i|D]9\}}|i|||i7}|i||qCW|i|id|i|i	d|i|i
dti|i}d}xLt|i|i|D]/\}}||i|7}|i||qW|i|idt
d|i|id|id}xLt|i|i|D]/\}}||i|7}|i||qW|i|idt
d|i|id|i|i}	|i|diti|	|idS(NuR(Rtcodecst	getreadertencodingtziptencodeRRtassertEqualt
bytebuffert
charbuffertgetincrementaldecodertdecodetTruetbuffertresettjoint
iterdecode(
Rtinputtpartialresultstqtrtresulttct
partialresulttdtencoded((s,/usr/local/lib/python2.5/test/test_codecs.pyt
check_partials>	

c
s%fdtdfd}d}d}d}i||t|i||t|i||td|i||td|g}g}xNtdiD]:\}}|i|dd	||i|dd	qWi|d
i|td
i|i|d
i|td
i|xtdD]}	xdiD]}d|	d|d
}|}
x8tdD]*}i|
i	dt|	d|qW|}
x4tdD]&}i|
i	dt|	dqWqsWq`WdS(Ncs1ti|ii}tii|S(N(tStringIORRRR(Rtstream(R(s,/usr/local/lib/python2.5/test/test_codecs.pyRIscs_|}g}x=to5|id|d|}|pPn|i|qWdi|S(NR	tkeependst|(RtreadlinetappendR(RR+R	treadertlinestline(R(s,/usr/local/lib/python2.5/test/test_codecs.pytreadalllinesMsufoo
bar
baz
spam
eggsufoo
|bar
|baz
|spam
|eggsufoo|bar|baz|spam|eggsi
u

 
 
 
iuÄ2RiPuauxxx
R+(
RtNoneRtFalset	enumeratetsplitR.RtxrangeR-(RR2R
t	sexpectedtsexpectednoendstvwtvwotitlineendR	R/((RRs,/usr/local/lib/python2.5/test/test_codecs.pyt
test_readlineHsD
++



c=Cs.ddddddddd	d
ddd
ddddddddddddddddddddddddd d!d"d#d$d%d&d'd(d)d*d d+d,d-d.d/d0d1d2d3d4d5d6g=}tid7i|i|i}ti|i|}x.t|D] \}}|i|||qWdS(8Ns:<%!--===================================================
s,    BLOG index page: show recent articles,
s7    today's articles, or articles of a specific date.
s>========================================================--%>
s!<%@inputencoding="ISO-8859-1"%>
s<%@pagetemplate=TEMPLATE.y%>
s$<%@import=import frog.util, frog%>
s!<%@import=import frog.objects%>
s9<%@import=from frog.storageerrors import StorageError%>
s<%
s
simport logging
s+log=logging.getLogger("Snakelets.logger")
suser=self.SessionCtx.user
s-storageEngine=self.SessionCtx.storageEngine
s-def readArticlesFromDate(date, count=None):
s2    entryids=storageEngine.listBlogEntries(date)
s%    entryids.reverse() # descending
s    if count:
s#        entryids=entryids[:count]
s
    try:
s\        return [ frog.objects.BlogEntry.load(storageEngine, date, Id) for Id in entryids ]
s    except StorageError,x:
s6        log.error("Error loading articles: "+str(x))
s,        self.abort("cannot load articles")
sshowdate=None
sarg=self.Request.getArg()
sif arg=="today":
s,    #-------------------- TODAY'S ARTICLES
s-    self.write("<h2>Today's articles</h2>")
s(    showdate = frog.util.isodatestr() 
s.    entries = readArticlesFromDate(showdate)
selif arg=="active":
s4    #-------------------- ACTIVE ARTICLES redirect
s     self.Yredirect("active.y")
selif arg=="login":
s/    #-------------------- LOGIN PAGE redirect
s    self.Yredirect("login.y")
selif arg=="date":
s7    #-------------------- ARTICLES OF A SPECIFIC DATE
s2    showdate = self.Request.getParameter("date")
sV    self.write("<h2>Articles written on %s</h2>"% frog.util.mediumdatestr(showdate))
selse:
s+    #-------------------- RECENT ARTICLES
s,    self.write("<h2>Recent articles</h2>")
s.    dates=storageEngine.listBlogEntryDates()
s    if dates:
s        entries=[]
s        SHOWAMOUNT=10
s         for showdate in dates:
sW            entries.extend( readArticlesFromDate(showdate, SHOWAMOUNT-len(entries)) )
s*            if len(entries)>=SHOWAMOUNT:
s                break
s                
R(R)RRRRRR5R(RR
R*R/R<R1((s,/usr/local/lib/python2.5/test/test_codecs.pyttest_bug1175396zs	$
cCst}ti|i|}ti|i|}|id|i|idtd|id|i|idtd|i|idtd|id|i|idtd|i|idtd|id|i|idt	d|id|i|idt	d|i|idt	d	|id|i|idt	d|i|idt	d|id
|i|idt	d
dS(Nufoo
R+ufoou
bar
uubarubazu
ubar
ufoo
(
RRt	getwriterRRRRR-R4R(RR!twriterR/((s,/usr/local/lib/python2.5/test/test_codecs.pyttest_readlinequeues*	






cCsd}d}d}|||i|i}ti|}ti|i|}|i|i||i|i||i|i||i|iddS(NuAxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx yyyyyyyyyyyyyyyyyyyyyyyyyyyyyyy
u`offending line: ladfj askldfj klasdj fskla dfzaskdj fasklfj laskd fjasklfzzzzaa%whereisthis!!!
unext line.
u(RRR)RRRR-(Rts1ts2ts3R
R*R/((s,/usr/local/lib/python2.5/test/test_codecs.pyttest_bug1098990_asc	Csd}d}d}d}d}|||||i|i}ti|}ti|i|}|i|i||i|i||i|i||i|i||i|i||i|iddS(Nuaaaaaaaaaaaaaaaaaaaaaaaa
ubbbbbbbbbbbbbbbbbbbbbbbb
ustillokay:bbbbxx
ubroken!!!!badbad
uagainokay.
u(RRR)RRRR-(	RRCRDREts4ts5R
R*R/((s,/usr/local/lib/python2.5/test/test_codecs.pyttest_bug1098990_bs"(RR
R(R>R?RBRFRI(((s,/usr/local/lib/python2.5/test/test_codecs.pyRs	,	2	E		
t	UTF16TestcBs>eZdZdZdZdZdZdZdZRS(sutf-16sspamspamsspamspamcCsti|i\}}}}ti}||}|id|id|i}|i||ijp
||ijti|}||}|i	|i
ddS(Nuspamuspamspam(RtlookupRR)Rtgetvaluetassert_tspamletspambetassertEqualsR(Rt_R/RAR
tfR&((s,/usr/local/lib/python2.5/test/test_codecs.pyttest_only_one_boms

&cCsxtid}ti|i|}|it|itid}ti|i|}|it|idS(Nss(R)RRRtassertRaisestUnicodeErrorR(RR
RR((s,/usr/local/lib/python2.5/test/test_codecs.pyttest_badbom
scCs2|idddddddddddg
dS(NuÿĀ￿uuuÿuÿĀ(R((R((s,/usr/local/lib/python2.5/test/test_codecs.pyttest_partialscCs |ittiddtdS(Nststrict(RTtUnicodeDecodeErrorRt
utf_16_decodeR(R((s,/usr/local/lib/python2.5/test/test_codecs.pyttest_errors's(	RR
RRNRORSRVRWR[(((s,/usr/local/lib/python2.5/test/test_codecs.pyRJs				tUTF16LETestcBs eZdZdZdZRS(s	utf-16-lec
Cs,|idddddddddgdS(NuÿĀ￿uuuÿuÿĀ(R((R((s,/usr/local/lib/python2.5/test/test_codecs.pyRW-scCs |ittiddtdS(NsRX(RTRYRtutf_16_le_decodeR(R((s,/usr/local/lib/python2.5/test/test_codecs.pyR[<s(RR
RRWR[(((s,/usr/local/lib/python2.5/test/test_codecs.pyR\*s	tUTF16BETestcBs eZdZdZdZRS(s	utf-16-bec
Cs,|idddddddddgdS(NuÿĀ￿uuuÿuÿĀ(R((R((s,/usr/local/lib/python2.5/test/test_codecs.pyRWBscCs |ittiddtdS(NsRX(RTRYRtutf_16_be_decodeR(R((s,/usr/local/lib/python2.5/test/test_codecs.pyR[Qs(RR
RRWR[(((s,/usr/local/lib/python2.5/test/test_codecs.pyR^?s	tUTF8TestcBseZdZdZRS(sutf-8c
Cs5|iddddddddddddgdS(Nuÿ߿ࠀ￿uuÿuÿ߿uÿ߿ࠀ(R((R((s,/usr/local/lib/python2.5/test/test_codecs.pyRWWs(RR
RRW(((s,/usr/local/lib/python2.5/test/test_codecs.pyR`TstUTF7TestcBseZdZRS(sutf-7(RR
R(((s,/usr/local/lib/python2.5/test/test_codecs.pyRaistUTF16ExTestcBseZdZdZRS(cCs#|ittidddtdS(NsRXi(RTRYRtutf_16_ex_decodeR(R((s,/usr/local/lib/python2.5/test/test_codecs.pyR[pscCs|ittidS(N(RTt	TypeErrorRRc(R((s,/usr/local/lib/python2.5/test/test_codecs.pyt
test_bad_argsss(RR
R[Re(((s,/usr/local/lib/python2.5/test/test_codecs.pyRbns	tReadBufferTestcBs#eZdZdZdZRS(cCs5ddk}|iti|iddddS(NiR$tspami(Rgi(tarrayRRtreadbuffer_encode(RRh((s,/usr/local/lib/python2.5/test/test_codecs.pyt
test_arrayxscCs|itidddS(NRi(Ri(RRRi(R((s,/usr/local/lib/python2.5/test/test_codecs.pyt
test_emptyscCs-|itti|ittiddS(Ni*(RTRdRRi(R((s,/usr/local/lib/python2.5/test/test_codecs.pyRes(RR
RjRkRe(((s,/usr/local/lib/python2.5/test/test_codecs.pyRfvs		tCharBufferTestcBs#eZdZdZdZRS(cCs|itidddS(NRgi(sspami(RRtcharbuffer_encode(R((s,/usr/local/lib/python2.5/test/test_codecs.pyttest_stringscCs|itidddS(NRi(Ri(RRRm(R((s,/usr/local/lib/python2.5/test/test_codecs.pyRkscCs-|itti|ittiddS(Ni*(RTRdRRm(R((s,/usr/local/lib/python2.5/test/test_codecs.pyRes(RR
RnRkRe(((s,/usr/local/lib/python2.5/test/test_codecs.pyRls		tUTF8SigTestcBs;eZdZdZdZdZdZdZRS(s	utf-8-sigcCsG|iddddddddddddddddddgdS(Nuÿ߿ࠀ￿uuuuÿuÿ߿uÿ߿ࠀ(R((R((s,/usr/local/lib/python2.5/test/test_codecs.pyRWs&cCstdddS(Nss	utf-8-sig(tunicode(R((s,/usr/local/lib/python2.5/test/test_codecs.pyttest_bug1601501scCs>tid}d}|i|i|id|dS(Ns	utf-8-siguspam(RRRRR(RR&R
((s,/usr/local/lib/python2.5/test/test_codecs.pyttest_bomsc	Csd}tid}tid}xdgtdddddd	d
gD]}|ti|}ti}xH|dj	o|i|}n
|i}|pPn|i|qv|i}|i	||qLWdS(NuABC¡∀XYZsABC¡∀XYZs	utf-8-sigiii@iiii(
RtBOM_UTF8RR3trangeR)RRRLR(	Rt	unistringt
bytestringR/tsizehinttistreamtostreamtdatatgot((s,/usr/local/lib/python2.5/test/test_codecs.pyttest_stream_boms"

c	Csd}d}tid}xdgtdddddd	d
gD]}|ti|}ti}xH|dj	o|i|}n
|i}|pPn|i|qo|i}|i||qEWdS(NuABC¡∀XYZsABC¡∀XYZs	utf-8-sigiii@iiii(	RRR3RtR)RRRLR(	RRuRvR/RwRxRyRzR{((s,/usr/local/lib/python2.5/test/test_codecs.pyttest_stream_bares"
(RR
RRWRqRrR|R}(((s,/usr/local/lib/python2.5/test/test_codecs.pyRos				tEscapeDecodeTestcBseZdZRS(cCs|itidddS(NRi(Ri(RPRt
escape_decode(R((s,/usr/local/lib/python2.5/test/test_codecs.pyRks(RR
Rk(((s,/usr/local/lib/python2.5/test/test_codecs.pyR~stRecodingTestcBseZdZRS(cCs<ti}ti|dd}|id|idS(Ntunicode_internalsutf-8ua(R)RtEncodedFileRtclose(RRRtf2((s,/usr/local/lib/python2.5/test/test_codecs.pyt
test_recodings
(RR
R(((s,/usr/local/lib/python2.5/test/test_codecs.pyRsu"ليهمابتكلموشعربي؟tegbpdaj6bu4bxfgehfvwxnu他们为什么不说中文tihqwcrb4cv8a8dqg056pqjyeu他們爲什麽不說中文tihqwctvzc91f659drss3x8bo0ybuPročprostěnemluvíčeskysProprostnemluvesky-uyb24dma41au,למההםפשוטלאמדבריםעבריתt4dbcagdahymbxekheh6e0a7fei0buZयहलोगहिन्दीक्योंनहींबोलसकतेहैंt,i1baa7eci9glrd9b2ae1bj0hfcgg6iyaf8o0a1dig0cdu6なぜみんな日本語を話してくれないのかt&n8jok5ay5dzabd5bym9f0cm5685rrjetr6pdxauH세계의모든사람들이한국어를이해한다면얼마나좋을까tE989aomsvi5e83db1d2a355cv1e0vak1dwrv93d5xbh15a0dt30a5jpsd879ccm6fea98cu8почемужеонинеговорятпорусскиt b1abfaaepdrnnbgefbaDotcwatmq2g4lu*PorquénopuedensimplementehablarenEspañols-PorqunopuedensimplementehablarenEspaol-fmd56au-TạisaohọkhôngthểchỉnóitiếngViệts,TisaohkhngthchnitingVit-kjcr8268qyxafd2f1b9gu3年B組金八先生s3B-ww4c5e180e575a65lsy2bu"安室奈美恵-with-SUPER-MONKEYSs(-with-SUPER-MONKEYS-pc58ag80a8qai00g7n9nu'Hello-Another-Way-それぞれの場所s(Hello-Another-Way--fc4qua05auwb3674vfr0buひとつ屋根の下2s2-u9tlzr9756bt3uc0vuMajiでKoiする5秒前sMajiKoi5-783gue6qz075azm5euパフィーdeルンバsde-jg4avhby1noc0duそのスピードでtd9juau41awczczpu-> $1.00 <-s-> $1.00 <--itPunycodeTestcBseZdZdZRS(cCs@x9tD]1\}}|i|idi|iqWdS(Ntpunycode(tpunycode_testcasesRPRtlower(Rtunitpuny((s,/usr/local/lib/python2.5/test/test_codecs.pyttest_encode\scCs4x-tD]%\}}|i||idqWdS(NR(RRPR(RRR((s,/usr/local/lib/python2.5/test/test_codecs.pyttest_decodees(RR
RR(((s,/usr/local/lib/python2.5/test/test_codecs.pyR[s		tUnicodeInternalTestcBs#eZdZdZdZRS(cCstidjodddg}dd	d
ddg}xV|D]N\}}tid
jodit|}n|i||idq;WxQ|D]E}tid
jodit|}n|it|idqWndS(Nitu􏿿tuāRussstttlittleR(Ru􏿿(Ruā(Ru(	tsyst
maxunicodet	byteorderRtreversedRPRRTRY(Rtoktnot_oktinternalR((s,/usr/local/lib/python2.5/test/test_codecs.pyttest_bug1251300js(		cCstidjoydidWnatj
oU}|id|i|id|i|id|i|id|iqX|i	ndS(NitRii(
RRRRYRPRtobjecttstarttendtfail(Rtex((s,/usr/local/lib/python2.5/test/test_codecs.pyttest_decode_error_attributesscCsztidjoftidtitid}did}|d|d |dfd}|id|ndS(	NiRRuabs%s""""%sii(uabi(RRRtregister_errort
ignore_errorst
getdecoderRRP(Rtdecodertabtignored((s,/usr/local/lib/python2.5/test/test_codecs.pyttest_decode_callbacks	(RR
RRR(((s,/usr/local/lib/python2.5/test/test_codecs.pyRis		s%foo­͏᠆᠋bar​⁠baz︀︈️t	foobarbaztCAFEtcafesßtsssİsi̇sŃͺsń ιsǰ ªsǰ asᾷsᾶιsǰsΐsΰsẖsὖt s s s s​Rs ss…s᠎ss𝅵ss󱈴s􏈴s򏿾s􏿿ss�s⿵śśs‎s‪s󠀁s󠁂sfoo־bars	fooﵐbars	fooﹶbars	foo َbarsا1sا1بsX­ßİ℡ǰ ªΰ sxssi̇telǰ aΰ sXß㌖İ℡⒟㌀s*xssキロメートルi̇tel(d)アパートtNameprepTestcBseZdZRS(cCsddkl}xttD]\}\}}|djoqnt|d}|djo|it||qt|d}y|i|||Wqt	j
o,}t
id|dt|fqXqWdS(Ni(tnameprepsutf-8s
Test 3.%d: %si(
tencodings.idnaRR5tnameprep_testsR3RpRTRURPt	ExceptionRt
TestFailedtstr(RRtpostorigtpreppedte((s,/usr/local/lib/python2.5/test/test_codecs.pyt
test_nameprep4s


(RR
R(((s,/usr/local/lib/python2.5/test/test_codecs.pyR3st
IDNACodecTestcBs5eZdZdZdZdZdZRS(cCsh|itddd|itddd|itddd|itddd	dS(
Ns
python.orgtidnau
python.orgspython.org.upython.org.sxn--pythn-mua.orgupythön.orgsxn--pythn-mua.org.upythön.org.(RPRp(R((s,/usr/local/lib/python2.5/test/test_codecs.pyttest_builtin_decodeGscCsh|ididd|ididd|ididd|ididddS(	Nu
python.orgRs
python.orgspython.org.upythön.orgsxn--pythn-mua.orgupythön.org.sxn--pythn-mua.org.(RPR(R((s,/usr/local/lib/python2.5/test/test_codecs.pyttest_builtin_encodeMscCsQddk}tid|id}|id|i|iddS(NiRtabciu(R)RRRRP(RR)R"((s,/usr/local/lib/python2.5/test/test_codecs.pyttest_streamSs
cCs|iditiddd|iditiddd|iditiddd|iditidddtid}|i|id	d
|i|idd|i|id
d
|i|id
td|i|i|id	d
|i|idd|i|idd|i|idtd
dS(NRs
python.orgRu
python.orgspython.org.upython.org.sxn--pythn-mua.org.upythön.org.sxn--xamus	ple-9ta.ou	äxample.urguorgsrg.uorg.(RPRRRRRRR(RR((s,/usr/local/lib/python2.5/test/test_codecs.pyttest_incremental_decodeYs,
cCsP|iditiddd|iditiddd|iditiddd|iditidddtid}|i|id	d|i|id
d|i|idtd
|i|i|id	d|i|idd|i|idtddS(NRu
python.orgRs
python.orgupython.org.spython.org.upythön.org.sxn--pythn-mua.org.uäxu	ample.orgsxn--xample-9ta.utorgu
ample.org.sxn--xample-9ta.org.(RPRRt
iterencodetgetincrementalencoderRRR(Rtencoder((s,/usr/local/lib/python2.5/test/test_codecs.pyttest_incremental_encodews(
(RR
RRRRR(((s,/usr/local/lib/python2.5/test/test_codecs.pyRFs
				tCodecsModuleTestcBsPeZdZdZdZdZdZdZdZdZ	RS(cCse|itiddd|itti|itidd|ittidddS(Nsslatin-1uäöüRuabcstascii(RPRRRTRdRY(R((s,/usr/local/lib/python2.5/test/test_codecs.pyRs
cCs~|itiddd|itti|ittidd|itidd|ittidd	dS(
Nuäöüslatin-1stfoot__spam__uabcRuÿffR(RPRRRTRdtLookupErrortUnicodeEncodeError(R((s,/usr/local/lib/python2.5/test/test_codecs.pyRscCs-|itti|ittiddS(Ni*(RTRdRtregister(R((s,/usr/local/lib/python2.5/test/test_codecs.pyt
test_registerscCsC|itti|ittid|ittiddS(NRR(RTRdRRKR(R((s,/usr/local/lib/python2.5/test/test_codecs.pyttest_lookupscCs-|itti|ittiddS(NR(RTRdRt
getencoderR(R((s,/usr/local/lib/python2.5/test/test_codecs.pyttest_getencoderscCs-|itti|ittiddS(NR(RTRdRRR(R((s,/usr/local/lib/python2.5/test/test_codecs.pyttest_getdecoderscCs-|itti|ittiddS(NR(RTRdRRR(R((s,/usr/local/lib/python2.5/test/test_codecs.pyttest_getreaderscCs-|itti|ittiddS(NR(RTRdRR@R(R((s,/usr/local/lib/python2.5/test/test_codecs.pyttest_getwriters(
RR
RRRRRRRR(((s,/usr/local/lib/python2.5/test/test_codecs.pyRs							tStreamReaderTestcBseZdZdZRS(cCs(tid|_tid|_dS(Nsutf-8s한
글(RRR/R)R*(R((s,/usr/local/lib/python2.5/test/test_codecs.pytsetUpscCs2|i|i}|i|iddgdS(Nu한
u글(R/R*RPt	readlines(RRR((s,/usr/local/lib/python2.5/test/test_codecs.pyttest_readliness(RR
RR(((s,/usr/local/lib/python2.5/test/test_codecs.pyRs	tEncodedFileTestcBseZdZRS(cCstid}ti|dd}|i|idti}ti|dd}|id|i|iddS(Ns한
글s	utf-16-lesutf-8s\
tlatin1süs(R)RRRPRRRL(RRRtef((s,/usr/local/lib/python2.5/test/test_codecs.pyt
test_basics
(RR
R(((s,/usr/local/lib/python2.5/test/test_codecs.pyRstStr2StrTestcBseZdZdZRS(cCscdid}tidti|}|i}|i|d|it|tdS(Nstbase64_codec(	RRRR)RRRMt
isinstanceR(RtsinR/tsout((s,/usr/local/lib/python2.5/test/test_codecs.pyt	test_reads
cCscdid}tidti|}|i}|i|d|it|tdS(NsR(	RRRR)R-RRMRR(RRR/R((s,/usr/local/lib/python2.5/test/test_codecs.pyR>s
(RR
RR>(((s,/usr/local/lib/python2.5/test/test_codecs.pyRs	RRtbig5t	big5hkscstcharmaptcp037tcp1006tcp1026tcp1140tcp1250tcp1251tcp1252tcp1253tcp1254tcp1255tcp1256tcp1257tcp1258tcp424tcp437tcp500tcp737tcp775tcp850tcp852tcp855tcp856tcp857tcp860tcp861tcp862tcp863tcp864tcp865tcp866tcp869tcp874tcp875tcp932tcp949tcp950teuc_jis_2004teuc_jisx0213teuc_jpteuc_krtgb18030tgb2312tgbkt	hex_codect	hp_roman8thzRt
iso2022_jptiso2022_jp_1tiso2022_jp_2tiso2022_jp_2004tiso2022_jp_3tiso2022_jp_extt
iso2022_krt	iso8859_1t
iso8859_10t
iso8859_11t
iso8859_13t
iso8859_14t
iso8859_15t
iso8859_16t	iso8859_2t	iso8859_3t	iso8859_4t	iso8859_5t	iso8859_6t	iso8859_7t	iso8859_8t	iso8859_9tjohabtkoi8_rtkoi8_utlatin_1tmac_cyrillict	mac_greektmac_icelandt
mac_latin2t	mac_romantmac_turkishtpalmostptcp154Rtraw_unicode_escapetrot_13t	shift_jistshift_jis_2004tshift_jisx0213ttis_620tunicode_escapeRtutf_16t	utf_16_bet	utf_16_letutf_7tutf_8tmbcs_encodetmbcstquopri_codect
string_escapetuu_codect	bz2_codect
zlib_codectBasicUnicodeTestcBs5eZdZdZdZdZdZRS(cCsd}xtD]}ti|i}|ido|d7}n|djo
d}n|i|idd|iddti||\}}|djo0|i|t|d|t||fnti	||\}}|i||d|||f|t
jot}ti||}d}	x+|D]#}
|i
|
|	|i7}	qMWt}ti||}d	}x+|	D]#}
|i
|
||i7}qW|i||d|||fn|tjoy%ti|}
ti|}Wntj
oqXd}	x!|D]}
|	|
i|
7}	q?W|	|
id	t7}	ti|}d	}x!|	D]}
||i|
7}qW||idt7}|i||d|||fd}	x!|D]}
|	|i|
7}	qW|	|id	t7}	ti|}d	}x!|	D]}
||i|
7}q@W||idt7}|i||d|||fd	ititi|||}|i||d|||fd	ititid	||}|i|d	q
q
WdS(
Nuabc123t_codecR6RQt-Rs%r != %r (encoding=%r)Ru(tall_unicode_encodingsRRKtnametendswithRtreplaceRtlenRtbroken_unicode_with_streamsRR@RRRtbroken_incremental_codersRt	_testcapitcodec_incrementalencoderRRRRRtcodec_incrementaldecoderRRR(RR
RRVtbytesR	RR!RAt
encodedresultR$R/t
decodedresultRtcencoderRtcdecoderR#((s,/usr/local/lib/python2.5/test/test_codecs.pyttest_basicsrs

(
0 
	
	
$
  ' 'cCsdddddf}xtD]}|djoqn|tjoqnti|ti|i|}xJtdD]<}|idd|i}|i	|t
| |qWqWdS(Nu%s
%s
iduabc123udef456Rii(RURZRRR)RR7tseekR-RRY(RR
RR/ttR1((s,/usr/local/lib/python2.5/test/test_codecs.pyt	test_seeks

'
cCsXxQtD]I}ti|}|it||djo|it|dqqWdS(NRRi*(sidnaspunycode(RURRRTRd(RRR((s,/usr/local/lib/python2.5/test/test_codecs.pyttest_bad_decode_argss
cCs4x-tD]%}ti|}|it|qWdS(N(RURRRTRd(RRR((s,/usr/local/lib/python2.5/test/test_codecs.pyttest_bad_encode_argsscCs3ddkl}t|i}|i||dS(Ni(R(t	encodingsRttypetencoding_tableR(RRt
table_type((s,/usr/local/lib/python2.5/test/test_codecs.pyt"test_encoding_map_type_initializeds(RR
RdRgRhRiRn(((s,/usr/local/lib/python2.5/test/test_codecs.pyRRqs
	H			tBasicStrTestcBseZdZRS(cCsd}xztD]r}ti||\}}|i|t|ti||\}}|i||d|||fq
WdS(Ntabc123s%r != %r (encoding=%r)(tall_string_encodingsRRRRYR(RR
RR_R	R((s,/usr/local/lib/python2.5/test/test_codecs.pyRds(RR
Rd(((s,/usr/local/lib/python2.5/test/test_codecs.pyRostCharmapTestcBseZdZRS(cCs|itidddd|itidddd|itidddd|itidd	dd|itidd	ddd
idtdD}|iti|d	d
d
t|fdS(NtRXuabciRXuabuab�uab￾tignoreRcssx|]}t|VqWdS(N(tchr(t.0R<((s,/usr/local/lib/python2.5/test/test_codecs.pys	<genexpr>s	iu(uabci(uab�i(uab�i(uabi(uabi(RPRtcharmap_decodeRR7RY(Rtallbytes((s,/usr/local/lib/python2.5/test/test_codecs.pyttest_decode_with_string_maps&(RR
Ry(((s,/usr/local/lib/python2.5/test/test_codecs.pyRrstWithStmtTestcBseZdZdZRS(cCsctid}ti|ddi}i}z#|~}|i|idWd|~QXdS(Nsüslatin-1sutf-8s(R)RRt__exit__t	__enter__RPR(RRRt_[1]t_[2]R((s,/usr/local/lib/python2.5/test/test_codecs.pyttest_encodedfiles.cCs{tid}tid}ti||i|idi}i}z#|~}|i|i	dWd|~QXdS(Nsüsutf-8RXuü(
R)RRKtStreamReaderWritertstreamreadertstreamwriterR{R|RPR(RRRtinfoR}R~tsrw((s,/usr/local/lib/python2.5/test/test_codecs.pyttest_streamreaderwriters
((RR
RR(((s,/usr/local/lib/python2.5/test/test_codecs.pyRzs	cCsStitttttttt	t
ttt
tttttttttttdS(N(Rtrun_unittestRJR\R^R`RoRaRbRfRlR~RRRRRRRRRRRRoRrRz(((s,/usr/local/lib/python2.5/test/test_codecs.pyt	test_mains0t__main__(u"ليهمابتكلموشعربي؟R(u他们为什么不说中文R(u他們爲什麽不說中文R(uPročprostěnemluvíčeskysProprostnemluvesky-uyb24dma41a(u,למההםפשוטלאמדבריםעבריתR(uZयहलोगहिन्दीक्योंनहींबोलसकतेहैंR(u6なぜみんな日本語を話してくれないのかR(uH세계의모든사람들이한국어를이해한다면얼마나좋을까R(u8почемужеонинеговорятпорусскиR(u*PorquénopuedensimplementehablarenEspañols-PorqunopuedensimplementehablarenEspaol-fmd56a(u-TạisaohọkhôngthểchỉnóitiếngViệts,TisaohkhngthchnitingVit-kjcr8268qyxafd2f1b9g(u3年B組金八先生s3B-ww4c5e180e575a65lsy2b(u"安室奈美恵-with-SUPER-MONKEYSs(-with-SUPER-MONKEYS-pc58ag80a8qai00g7n9n(u'Hello-Another-Way-それぞれの場所s(Hello-Another-Way--fc4qua05auwb3674vfr0b(uひとつ屋根の下2s2-u9tlzr9756bt3uc0v(uMajiでKoiする5秒前sMajiKoi5-783gue6qz075azm5e(uパフィーdeルンバsde-jg4avhby1noc0d(uそのスピードでR(u-> $1.00 <-s-> $1.00 <--(s%foo­͏᠆᠋bar​⁠baz︀︈️R(RR(sßR(sİsi̇(sŃͺsń ι(NN(sǰ ªsǰ a(sᾷsᾶι(sǰsǰ(sΐsΐ(sΰsΰ(sẖsẖ(sὖsὖ(RR(s R(s N(s R(s​R(s R(ss(s…N(s᠎N(sR(s𝅵N(sN(s󱈴N(s􏈴N(s򏿾N(s􏿿N(sN(s�N(s⿵N(śś(s‎N(s‪N(s󠀁N(s󠁂N(sfoo־barN(s	fooﵐbarN(s	fooﹶbars	foo َbar(sا1N(sا1بsا1ب(NN(sX­ßİ℡ǰ ªΰ sxssi̇telǰ aΰ (sXß㌖İ℡⒟㌀s*xssキロメートルi̇tel(d)アパート(5t
__future__RttestRtunittestRRR)R\RRtTestCaseRRJR\R^R`RaRbRfRlRoR~RRR<RYtreprRRR3RRRRRRRRUthasattrR.RqRZR[tbz2tImportErrortzlibRRRoRrRzRR(((s,/usr/local/lib/python2.5/test/test_codecs.pys<module>s8$2P	3	M*
				



j	!	


Man Man