| ofs | hex dump | ascii |
|---|
| 0000 | 89 50 4e 47 0d 0a 1a 0a 00 00 00 0d 49 48 44 52 00 00 05 53 00 00 01 d5 08 02 00 00 00 73 19 fc | .PNG........IHDR...S.........s.. |
| 0020 | 64 00 00 00 09 70 48 59 73 00 00 0f 3a 00 00 0f 12 01 ca 64 75 68 00 00 00 07 74 49 4d 45 07 d7 | d....pHYs...:......duh....tIME.. |
| 0040 | 07 04 0d 00 21 ba 1c 4e 7d 00 00 20 00 49 44 41 54 78 da ec 9d 77 5c 14 c7 ff ff e7 e8 1d 8e 76 | ....!..N}....IDATx...w\........v |
| 0060 | 08 08 88 58 89 d8 10 8d 12 63 34 89 26 18 0b 82 f5 63 09 6a 3e 28 a2 88 4a 11 a4 08 a2 58 50 34 | ...X.....c4.&....c.j>(..J....XP4 |
| 0080 | f6 a8 18 8d f2 49 34 9a 7c f4 13 35 a6 80 c6 c4 08 8a 26 b1 04 54 20 2a e5 68 22 fd 8e bb df 1f | .....I4.|..5......&..T.*.h"..... |
| 00a0 | f3 cd fe 2e 57 96 a3 1c 1c f0 7a fe 71 8f bd d9 99 d9 d9 d9 7d cd ec 7b 67 67 de 1c 1d 9b 9d 04 | ....W.....z.q.......}..{gg...... |
| 00c0 | 00 00 00 00 00 00 00 00 00 5d 14 2d 42 c8 86 4f 67 a2 22 00 00 00 00 00 00 00 00 80 2e 6b f9 17 | .........].-B..Og."..........k.. |
| 00e0 | bd 12 a0 22 00 00 00 00 00 00 00 00 80 2e 6b f9 f3 ab 60 f9 03 00 00 00 00 00 00 00 e8 32 88 45 | ..."..........k...`..........2.E |
| 0100 | 95 45 e2 97 05 a2 da ca 56 66 a4 a1 6f c2 31 ed a1 61 c2 23 84 a8 20 4f 8e 8a cb cc f9 ff 96 7f | .E......Vf..o.1..a.#...O........ |
| 0120 | 59 4d a3 64 a4 da 8c cf fb 6a 3c b7 30 e7 3e 17 18 17 5b 8d e4 98 d9 49 96 86 43 88 f8 e5 73 a3 | YM.d.....j<.0.>...[....I..C...s. |
| 0140 | 9c 8b 05 f5 7a c6 a3 17 e0 86 02 00 00 00 00 00 00 00 a0 56 70 aa 8a 34 4b fe ec e7 ec d8 db c9 | ....z..............Vp..4K....... |
| 0160 | 4d 57 47 bb c5 f9 54 d5 d4 e6 fd f5 fc cf a7 0f 1b 2d 45 84 90 36 cf 53 6c c4 53 69 99 99 fc b5 | MWG...T..........-E..6.Sl.Si.... |
| 0180 | 08 21 af ea ff 61 f9 73 7a bf d5 58 71 7d a4 47 bf 92 d2 d2 2b 4f 1e 15 70 0c 88 9e a9 98 79 79 | .!...a.sz..Xq}.G....+O..p.....yy |
| 01a0 | 50 57 e1 58 f1 5b 0d d1 14 f7 19 2f 95 10 00 00 00 00 b2 fc bc 6a 20 21 e4 f5 e4 fb a8 0a 00 00 | PW.X.[...../.........j.!........ |
| 01c0 | 00 a0 7d d0 e2 e7 bb f5 72 74 e9 ed 2c 10 08 9e fc 99 53 52 52 22 10 34 ef 53 77 3d 3d 3d 2e 97 | ..}.....rt..,.....SRR".4.Sw===.. |
| 01e0 | eb e0 e0 d0 c7 a5 77 ad a0 f1 fe 5f f9 84 90 36 cf 53 a8 6d a9 d2 32 33 f9 6b 11 42 aa 1a fe 69 | ......w...._...6.S.m..23.k.B...i |
| 0200 | c0 6b 9a fc ae d1 4f f3 a7 ac 01 3d 8c ed 85 a5 85 2f 34 2a 7b 78 10 4d 6d 42 88 86 a0 c6 ba ec | .k....O....=...../4*{x.MmB...... |
| 0220 | 5e 43 75 e1 5f a6 43 1b 74 2c 48 03 2c 7f 00 00 00 40 29 7a fe 14 f3 60 c4 06 d4 03 00 00 00 d0 | ^Cu._.C.t,H.,....@)z...`........ |
| 0240 | 0e e8 be 2c b5 e1 0d aa aa ad cb ca ca 6a 68 68 68 41 0e 0d d5 35 95 d5 35 cf 0b 8b 86 0d 1b 66 | ...,.........jhhhA...5..5......f |
| 0260 | 6f 67 9b f9 fb 9f 84 90 36 cf b3 de b2 51 a5 65 66 f2 d7 22 84 d4 34 88 a4 12 d4 ea d9 dd 7e 55 | og......6....Q.ef.."..4.......~U |
| 0280 | 5c f3 e0 9e 99 8e 88 5b 51 5c 26 36 6a e0 0d e2 88 04 dc 97 39 86 95 4f 9e 6a f6 ac 30 ea 45 84 | \......[Q\&6j.......9..O.j..0.E. |
| 02a0 | 1c 42 44 b8 a5 00 00 00 00 25 91 ed 70 01 00 00 00 a0 0a 44 0d 42 3d 7d fd fc fc 7c 8e a6 96 ae | .BD......%..p......D.B=}...|.... |
| 02c0 | be 56 6b b2 7a 5e 50 d8 b3 67 cf da 06 21 21 44 6e 9e a6 a4 c6 44 b3 9e 25 87 ca 46 dd 97 c4 40 | .Vk.z^P..g...!!Dn....D..%..F...@ |
| 02e0 | 6e 9e 75 12 cf 06 aa 28 33 93 bf 16 21 a4 a4 5a 28 13 53 b3 4c b7 6f 7d 79 81 43 f1 5d 2d b1 c0 | n.u....(3...!..Z(.S.L.o}y.C.]-.. |
| 0300 | f8 d5 e5 27 22 23 3d 2d 8e 69 f9 9d 3c 91 61 9e 65 7f 91 40 5b dc 20 c4 fd 04 00 00 00 c8 a2 ab | ...'"#=-.i..<.a.e..@[........... |
| 0320 | c5 d9 3e c5 c1 77 b0 b9 be b6 86 64 78 49 b5 90 c3 21 01 63 78 4b 46 59 d9 9b ea 14 57 09 0e fd | ..>..w.....dxI...!.cxKFY....W... |
| 0340 | c2 4f 4e 2f 14 8b 09 21 e4 65 c2 70 26 66 bd 50 fc 27 bf 96 ab af d5 c3 44 bb b8 4a b8 f6 eb fc | .ON/...!.e.p&f.P.'......D..J.... |
| 0360 | 0b f7 2b 08 21 1a 1c 12 f4 a6 8d 9f 87 55 0f 13 ed 82 4a c1 b1 5f f9 3b d3 0a 45 62 54 39 00 00 | ..+.!........U....J.._.;..EbT9.. |
| 0380 | 00 f0 0f 4c 6a 1b 6a 85 a4 ba 41 a4 a5 6f dc ca ac aa ea 1b 6b 85 a4 b2 b6 81 10 22 37 4f ae a8 | ...Lj.j...A..o......k......"7O.. |
| 03a0 | 2a e4 a3 45 2c 39 6c 3d f4 59 b5 86 b1 dc 3c 2b 25 8c 71 f6 32 db 8b 0a e8 c6 33 8d 1e 8a 42 58 | *..E,9l=.Y....<+%.q.2.....3...BX |
| 03c0 | f2 d7 22 84 d4 0a e4 0c 41 70 34 8d f2 cd dc 35 2a 0b ad eb 1e 9b 70 8a 4c 72 fe 67 61 66 52 45 | ..".....Ap4....5*.....p.Lr.gafRE |
| 03e0 | 1a 73 4c dd 1a b4 4c c5 18 b5 00 00 00 00 14 10 f1 8e fd 02 77 cb 93 97 7e be 78 ea d0 bc 99 33 | .sL...L.............w...~.x....3 |
| 0400 | 26 4f 9e 4c c3 6b 05 a2 35 e3 6c 36 bd 6f 7f f6 a7 07 6b 3e d9 3b c7 eb ad 58 9f 19 c6 af 72 d7 | &O.L.k..5.l6.o....k>.;...X....r. |
| 0420 | df d4 66 16 d3 3d 7a f4 68 4e 4e 4e 42 42 c2 a0 1e 06 fb 3e fd e2 71 f6 9f 3b e2 22 92 df e3 5e | ..f..=z.hNNNBB.....>..q..;."...^ |
| 0440 | ff e5 d7 02 7d 97 b0 09 3d a2 df b5 3b fe ed 9d ff 9e fa 64 91 8f 57 94 d7 fb a6 35 f9 21 3f 69 | ....}...=...;......d..W....5.!?i |
| 0460 | 8a ff b1 32 30 00 00 00 d0 dd d1 15 34 36 8a 88 b6 8e 9e b6 8e f4 2e f3 86 02 2d 91 c2 21 fa 7a | ...20.......46............-..!.z |
| 0480 | 0d 83 97 3a d6 52 81 8d 22 52 2f 68 a4 1b b2 79 6a d6 69 13 0e 5b 47 ac a9 a5 ad af 67 24 37 4f | ...:.R.."R/h...yj.i..[G.....g$7O |
| 04a0 | 49 63 9c a5 cc d6 75 b9 6b 96 fe 8b 6e ef 38 f2 9f 62 3d 27 d9 10 f6 fc 15 7e 42 20 16 13 81 81 | Ic....u.k...n.8..b='.....~B..... |
| 04c0 | f5 5f 56 a3 8d 0a ca 44 35 15 ba 9a 15 26 8d c2 4c fd d7 1b 4c 7a e2 f1 02 00 00 00 60 e1 5f c3 | ._V....D5....&..L...Lz......`._. |
| 04e0 | 2c 08 21 e9 5f 1e 7b a8 e3 ba f2 76 8f bf 0d 7f 42 08 59 36 9a 47 08 f9 fe d4 c7 cf 39 36 2b b3 | ,.!._.{....v....B.Y6.G......96+. |
| 0500 | 7a fa fa 90 f9 6f b8 1c fd f6 6c 8e c9 08 1a 21 2d 2d 2d c3 d0 33 81 10 42 c8 ad 1f fe 77 53 f7 | z....o....l....!---..3..B....wS. |
| 0520 | f5 1d 84 58 5a 98 bb 95 5e 2d b0 77 59 3a ca 9a 10 72 e3 cc 81 27 9a bd 03 33 ac 27 7b 91 79 9e | ...XZ...^-.wY:...r...'...3.'{.y. |
| 0540 | 7d 0e ff ef f4 9f a6 a3 50 ed 00 00 00 00 83 50 28 d4 d0 d0 30 34 34 94 dd a5 df 28 0a 5a 3c 47 | }.......P......P(...044....(.Z<G |
| 0560 | 51 c2 5d 29 67 84 32 a9 34 34 34 84 42 21 dd 90 cd 53 bb 51 5b 43 43 83 a5 30 da da da 86 8a f3 | Q.])g.2.444.B!...S.Q[CC..0...... |
| 0580 | 54 a6 cc d5 86 ae bb 3f fd 32 68 91 0f 21 64 dd d2 39 bb 52 ce 04 2d 9d c3 14 b8 da c2 55 36 8d | T......?.2h..!d..9.R..-......U6. |
| 05a0 | 54 fe ac 93 07 c4 22 43 e1 4b b1 48 54 dc 68 e4 c1 23 b5 5a 9a da 1c 51 ad 58 cc fe 3e 03 00 00 | T....."C.K.HT.h..#.Z...Q.X..>... |
| 05c0 | 00 e8 e6 f0 8c b5 09 21 2f 5f be 7c 6c e7 2e a8 fe c7 b7 f8 b6 a6 da 84 90 bd 7b f7 32 21 56 56 | .......!/_.|l.............{.2!VV |
| 05e0 | 56 ce af b2 18 cb bf b6 b6 36 d7 6a e0 ff 75 f3 d5 d5 79 e6 03 fe 7e 4c 79 45 08 b1 35 d1 26 84 | V........6.j..u...y...~LyE..5.&. |
| 0600 | 54 54 54 e4 d8 8d 10 d4 10 42 08 97 cb ed 55 75 17 96 3f 00 00 00 20 89 48 24 e2 70 38 fa fa fa | TTT......B....Uu..?.....H$.p8... |
| 0620 | b2 bb b4 6a b4 38 8a 4d 5a 2d 2d 2d d9 54 1c 0e 47 24 12 d1 0d d9 bd 34 c3 3d 27 ce c9 cd 30 70 | ...j.8.MZ---.T..G$.....4.='...0p |
| 0640 | fe 74 f6 3c 95 29 33 21 a4 5e 7f f0 c7 27 cf 07 ce 9f 4e 08 59 fd a1 2f 0d dc 73 e2 5c 3d 6f b0 | .t.<.)3!.^...'....N.Y../..s.\=o. |
| 0660 | dc 04 52 f9 2b b4 fc 39 44 6c fc ea 29 af 34 b3 50 d7 51 5b 57 58 5d f3 44 2c aa 76 d4 fe 35 47 | ..R.+..9Dl..).4.P.Q[WX].D,.v..5G |
| 0680 | cf bc d6 c4 11 c3 fe 00 00 00 80 22 0a 2a 05 f6 66 3a a6 a6 a6 f5 9a 06 36 46 ff e8 6a 9f 55 34 | ...........".*..f:......6F..j.U4 |
| 06a0 | 38 99 eb 2e 5b b6 ac b4 b4 94 09 d4 ff 67 af 2a e0 fc ff 8f fc 04 1a 7a 92 bb 0a 5f 09 ec 4c 75 | 8...[........g.*.......z..._..Lu |
| 06c0 | cc cc cc ea 35 0d 69 ce 65 65 65 7a 8d 55 a8 73 00 00 00 40 d6 8a d6 d3 d3 93 dd a5 a9 a9 c9 92 | ....5.i.eeez.U.s...@............ |
| 06e0 | 50 53 53 53 6e 2a c6 f2 97 dd 4b 33 d4 d4 d4 6c b0 19 22 b5 4b a7 30 ab c9 3c 95 29 b3 a2 92 2b | PSSSn*....K3...l..".K.0..<.)...+ |
| 0700 | ca 59 36 7f f9 96 3f 87 43 f4 6a 4b 6c 4b 6f d5 13 9d 52 bb b1 8d 9a 7a 06 79 5f d8 08 ff 32 17 | .Y6...?.C.jKlKo...R....z.y_...2. |
| 0720 | 17 39 54 64 3c d5 35 6d d0 e3 8a b1 9e 10 00 00 00 20 8f cf 6e 97 86 8e ef 31 79 f2 e4 f3 d7 eb | .9Td<.5m............n....1y..... |
| 0740 | 82 c6 3a 48 ee da 73 bd 68 c7 14 87 b9 73 e7 ce fd 46 5c a3 61 e4 d9 cb 28 f0 0d 9b f7 0f 3f 52 | ..:H..s.h....s...F\.a...(.....?R |
| 0760 | 32 e7 13 19 a5 61 13 7a 7c f0 c1 07 e7 af d5 ae 7e d3 81 10 f2 dd 77 df d5 69 1a a3 ce 01 00 00 | 2....a.z|.......~.....w..i...... |
| 0780 | 00 29 a3 b7 b1 b1 51 ea 73 7a 8a 58 c3 40 d1 f8 3c 21 44 a8 6d dc 50 2f bd 0a 80 96 96 16 b5 a2 | .)....Q.sz.X.@..<!D.m.P/........ |
| 07a0 | e5 e6 a9 d9 d8 48 77 d5 cb 24 64 d9 c5 e4 a9 4c 99 09 21 06 25 bf 2f 9f 3f fd ff 1e 27 4e 9c a3 | .....Hw..$d....L..!.%./.?...'N.. |
| 07c0 | 83 ff cb e7 4e d9 73 e2 5c 8d e5 6b b2 f1 a5 f2 97 6f f9 6b 0b 6b 1c 6b fe 30 24 b5 7f f2 46 0b | ....N.s.\..k.....o.k.k.k.0$...F. |
| 07e0 | 0c 79 62 8e 66 be ed bb 66 25 57 9c 8d 85 56 9a 2f 49 fd a3 c7 5a 43 04 9a 7a b8 9f 00 00 00 00 | .yb.f...f%W...V./I...ZC..z...... |
| 0800 | 59 e2 bf 7d de 4f a7 f4 fd 49 93 8a a7 48 2f d1 b3 e7 5a 91 d1 ab dc c5 6f 38 3d d9 68 57 27 24 | Y..}.O...I...H/...Z.....o8=.hW'$ |
| 0820 | 37 9e 56 1e bb 72 67 74 d1 c5 1b 3c 5f 65 72 8e fb f6 b9 75 c3 b3 69 a3 47 17 bc cf 7d 51 29 d8 | 7.V..rgt...<_er....u..i.G...}Q). |
| 0840 | 7f fe fa 8f e7 ce e5 9a 7a a2 ce 01 00 00 80 7f 98 f7 62 b1 40 20 78 f9 f2 a5 58 ce 90 b5 09 d1 | ........z.........b.@.x...X..... |
| 0860 | 34 51 fc ce 80 90 f2 72 c9 00 0e 87 63 6a 6a 4a f3 91 9b a7 66 7d bd 48 24 aa af af d7 7c 9e 29 | 4Q.....r....cjjJ....f}.H$....|.) |
| 0880 | 95 59 3d 21 74 57 b9 e2 3c 95 29 b3 65 cd 93 00 bf 99 d4 92 4f 3a fa 79 89 81 f3 f6 4f 52 83 fd | .Y=!tW..<.).e.......O:.y....OR.. |
| 08a0 | 66 12 42 02 e6 4d a5 21 ec f9 cb b1 fc 35 c4 42 bb fa a7 ce 5a 65 77 4d 5c ab cd 7a 8b 39 9a 84 | f.B..M.!.....5.B....ZewM\..z.9.. |
| 08c0 | 90 3a 63 87 bf 34 3c 07 18 3c 76 e1 ea 72 ab 5f d6 54 3f 7b a6 d1 4b c4 d1 c4 2d 05 00 00 00 48 | .:c..4<..<v..r._.T?{..K...-....H |
| 08e0 | 77 f3 42 f1 ec f3 af 06 1f 4d b4 af 7e a0 29 96 7e 73 bf 39 4b ff f4 f5 2b ce 95 77 8c 84 65 8d | w.B......M..~.).~s.9K...+..w..e. |
| 0900 | 44 b3 54 cf fe 89 e9 08 42 88 ce ba 5b d3 f2 b6 d1 38 8a b6 05 8d e2 e5 df 8b 76 9f 3d ea 50 7d | D.T.....B...[....8........v.=.P} |
| 0920 | 5f b7 b1 ba 4e d3 28 cf 74 cc 9f a6 23 51 e7 00 00 00 c0 3f ec 77 91 a8 be be be aa aa aa aa aa | _...N.(.t...#Q.....?.w.......... |
| 0940 | b5 73 e2 8c 8c 8c f4 f4 f4 a8 d5 2d 37 4f 03 cd 9a c6 c6 c6 55 0b 67 c8 4d de d8 d8 58 53 53 53 | .s.........-7O......U.g.M...XSSS |
| 0960 | f4 aa 48 51 9e ca 94 b9 88 18 c6 7f 9c 42 b7 9f 36 5a 91 57 45 b2 21 ec f9 cb b1 fc cd 04 fc e1 | ..HQ.........B..6Z.WE.!......... |
| 0980 | da 79 8f ea b9 45 c6 03 45 7f 0f ec 8b 38 9a c5 06 bd 1f 6a 69 bc 66 d9 60 6b ab c9 f9 ab e8 74 | .y...E..E....8.....ji.f.`k.....t |
| 09a0 | b9 59 a5 b6 25 6e 29 00 00 00 40 ce 03 07 47 eb 8e c5 a4 3b 16 93 e4 ee cd 35 1a 9c 6b 34 58 36 | .Y..%n)...@...G....;.....5..k4X6 |
| 09c0 | fc bc e3 ba 26 b7 45 44 e3 3e f7 cd fb dc 37 51 c9 00 00 00 80 22 c4 62 71 41 51 91 91 81 41 4e | ....&.ED.>....7Q.....".bqAQ...AN |
| 09e0 | 4e 4e 63 63 63 8b f3 d1 d4 d4 74 75 75 2d 28 2a a2 e3 e7 72 f3 d4 31 12 46 6e 3f c0 92 49 45 3d | NNccc.....tuu-(*...r..1.Fn?..IE= |
| 0a00 | e7 79 d5 73 45 79 2a 59 e6 e7 32 9b cf e5 ee 54 90 bf 1c cb 5f b7 fc c9 1f 1c cd 1c 63 b7 46 5d | .y.sEy*Y..2....T...._.......c.F] |
| 0a20 | 63 22 51 12 a1 a6 de 5d 81 7d 63 76 2e 8f 94 56 d7 d4 e8 57 3d ac b4 c1 e7 85 00 00 00 00 00 00 | c"Q....].}cv...V...W=........... |
| 0a40 | 00 00 d4 0b 91 be d9 cd 8c 3b 6f 8e 1e e9 e8 e8 98 9d 9d fd f2 e5 4b 81 40 d0 ac 1c b4 b5 b5 4d | .........;o...........K.@......M |
| 0a60 | 4d 4d 9d 9d 9d 85 42 e1 cd 8c 3b 22 7d 33 42 88 dc 3c 8b 8a 5a 95 a7 aa cb 4c e1 e8 d8 ec 14 ff | MM....B...;"}3B..<..Z....L...... |
| 0a80 | 6b 0c ee 0c 00 00 00 00 00 00 00 00 5d 84 d2 a7 24 ff 26 8f 6b 3c a0 6f 6f 6b cb 96 7f ab 5e 5c | k...........]...$.&.k<.ook....^\ |
| 0aa0 | 52 f2 e0 cf c7 45 e5 af 88 c3 48 42 48 db e7 69 d1 4b b5 65 fe 3b 7f 58 fe 00 00 00 00 00 00 00 | R....E....HBH..i.K.e.;.X........ |
| 0ac0 | 00 ba 16 62 91 b8 34 97 94 e6 90 ea b2 d6 66 65 68 4e 2c 5c 38 16 4e 84 90 b6 cf 93 a3 a1 da 32 | ...b..4.......fehN,\8.N........2 |
| 0ae0 | ff 9d 3f 47 c7 66 a7 60 ee 68 dc 18 00 00 00 00 00 00 00 00 40 97 44 8b 10 22 c7 cd 01 00 00 00 | ..?G.f.`.h..........@.D.."...... |
| 0b00 | 00 00 00 00 00 00 ba 8c e5 cf 50 1e d5 17 35 02 00 00 00 00 00 00 00 00 74 01 b8 1b ff a4 1b 1a | ..........P...5.........t....... |
| 0b20 | a8 0b 00 00 00 00 00 00 00 00 a0 0b 03 cb 1f 00 00 00 00 00 00 00 00 80 e5 0f 00 00 00 00 00 00 | ................................ |
| 0b40 | 00 00 00 58 fe 00 00 00 00 00 00 00 00 00 80 e5 0f 00 00 00 00 00 00 00 00 00 58 fe 00 00 00 00 | ...X......................X..... |
| 0b60 | 00 00 00 00 00 80 e5 0f 00 00 00 00 00 00 00 00 00 58 fe 00 00 00 00 00 00 00 00 00 2c 7f 00 00 | .................X..........,... |
| 0b80 | 00 00 00 00 00 00 00 c0 f2 07 00 00 00 00 00 00 00 00 40 e7 42 ab 59 b1 6f de bc 89 2a 03 60 e2 | ..................@.B.Y.o...*.`. |
| 0ba0 | c4 89 15 15 15 50 07 00 10 08 00 50 07 00 10 0e 00 6a a5 8e b6 b1 fc 09 21 23 47 8e 44 15 03 00 | .....P.....P.....j......!#G.D... |
| 0bc0 | 75 00 00 81 00 00 75 00 00 e1 00 d0 59 c0 d7 fe 00 00 00 00 00 00 00 00 00 2c 7f 00 00 00 00 00 | u.....u.....Y............,...... |
| 0be0 | 00 00 00 00 c0 f2 07 00 a8 1a 2e 97 ab 56 f9 80 6e 7e 23 01 00 00 e8 1a 8d bc 6c 92 2f bf fc b2 | .............V..n~#.......l./... |
| 0c00 | 6f df be 34 5c 72 1b 00 00 cb 1f 00 20 dd 89 52 ec ed ed a7 4d 9b f6 e8 d1 23 d5 1d eb db 6f bf | o..4\r.........R....M....#....o. |
| 0c20 | 1d 3d 7a 34 8f c7 1b 35 6a d4 e5 cb 97 db b6 fc 92 a8 a2 72 7c 7c 7c 72 72 72 d4 f6 91 88 29 2a | .=z4...5j..........r|||rrr....)* |
| 0c40 | 8f c7 9b 34 69 d2 1f 7f fc d1 25 9f 0e f1 3c 07 80 3a f0 db 6f bf cd 9c 39 d3 c1 c1 c1 c6 c6 e6 | ...4i.....%...<..:..o...9....... |
| 0c60 | fd f7 df bf 78 f1 62 fb f7 59 6d d2 d6 a1 91 ef bc 6d 38 93 55 54 54 d4 c9 93 27 cb cb cb a5 b6 | ....x.b..Ym......m8.UTT...'..... |
| 0c80 | d5 e7 6d 05 00 00 96 3f 00 ea 42 79 79 79 79 79 f9 fd fb f7 3d 3d 3d 97 2e 5d aa a2 a3 64 64 64 | ..m....?..Byyyyy....===..]...ddd |
| 0ca0 | 04 06 06 26 26 26 e6 e7 e7 6f dd ba 75 d5 aa 55 19 19 19 6d 55 78 da cd 4b 6e b7 6d e5 dc bd 7b | ...&&&...o..u..U...mUx..Kn.m...{ |
| 0cc0 | 77 f0 e0 c1 aa ab 9c 36 2c 6a 6e 6e ee 7b ef bd b7 64 c9 92 2e 76 8b 42 a7 00 a8 09 0f 1f 3e f4 | w......6,jnn.{...d...v.B......>. |
| 0ce0 | f1 f1 99 3e 7d fa 6f bf fd 96 97 97 17 13 13 93 9a 9a da 79 db 3a 34 f2 9d b4 0d 67 f2 7c f1 e2 | ...>}.o............y.:4....g.|.. |
| 0d00 | c5 88 11 23 64 b7 01 00 b0 fc 01 00 f2 31 31 31 09 0c 0c a4 63 fe 8d 8d 8d b1 b1 b1 7d fa f4 e9 | ...#d........111....c.......}... |
| 0d20 | d1 a3 c7 92 25 4b 6a 6a 6a 68 9c bc bc bc 79 f3 e6 d9 db db db d8 d8 f8 f8 f8 f0 f9 7c 1a 5e 5f | ....%Kjjjh....y.............|.^_ |
| 0d40 | 5f 1f 10 10 60 6b 6b db af 5f bf dd bb 77 cb cd 7f e7 ce 9d 1b 36 6c 78 e3 8d 37 74 75 75 c7 8e | _...`kk.._...w.......6lx..7tuu.. |
| 0d60 | 1d 1b 19 19 b9 6b d7 2e ba 8b cb e5 1e 3b 76 cc cd cd cd da da fa cd 37 df 94 1c ca a8 a8 a8 70 | .....k.......;v........7.......p |
| 0d80 | 71 71 29 2d 2d a5 7f 05 02 41 9f 3e 7d 4a 4a 4a 58 4e 84 cb e5 ee df bf ff b5 d7 5e b3 b4 b4 64 | qq)--....A.>}JJJXN.........^...d |
| 0da0 | 39 17 45 e1 72 b1 b0 b0 08 09 09 61 0a 26 75 88 fa fa fa 55 ab 56 39 38 38 38 38 38 04 05 05 d5 | 9.E.r......a.&u....U.V988888.... |
| 0dc0 | d7 d7 33 d1 76 ed da d5 b7 6f 5f 5b 5b db 15 2b 56 30 e1 8a 0e 2d 99 2d 1d 55 a0 23 3c cd aa 04 | ..3.v....o_[[..+V0...-.-.U.#<... |
| 0de0 | 7d 7d fd 25 4b 96 3c 7d fa 54 f9 a2 0e 1f 3e 3c 3b 3b 9b 10 f2 ec d9 33 73 73 f3 c2 c2 42 42 48 | }}.%K.<}.T....><;;.....3ss...BBH |
| 0e00 | 76 76 f6 f0 e1 c3 09 21 57 af 5e 7d fd f5 d7 ad ad ad dd dc dc 52 52 52 94 3f 05 96 fa 54 94 5c | vv.....!W.^}.........RRR.?...T.\ |
| 0e20 | d1 8d c4 d4 06 53 27 4c 7c 45 35 af 4c 31 00 00 2d 60 eb d6 ad a1 a1 a1 73 e6 cc 31 35 35 d5 d5 | .....S'L|E5.L1..-`......s..155.. |
| 0e40 | d5 f5 f0 f0 38 71 e2 44 73 db 46 a9 46 9b bd cd 54 a6 ad 93 7b 2c 6f 6f ef eb d7 af d3 08 3f fe | ....8q.Ds.F.F...T...{,oo......?. |
| 0e60 | f8 e3 ac 59 b3 d0 c8 ab a8 91 67 3f 84 a2 36 9c 10 a2 a8 f7 67 68 b2 5f 10 8b c5 e6 e6 e6 34 5b | ...Y......g?..6.....gh._......4[ |
| 0e80 | 66 5b f9 53 60 89 26 5b 36 b9 a7 00 00 80 e5 0f 40 27 a3 b2 b2 72 f7 ee dd 83 06 0d 22 84 24 25 | f[.S`.&[6.......@'...r......".$% |
| 0ea0 | 25 65 65 65 a5 a5 a5 65 67 67 eb ea ea 46 47 47 d3 38 b3 67 cf f6 f7 f7 cf c9 c9 c9 ce ce ee df | %eee...egg...FGG.8.g............ |
| 0ec0 | bf 7f 44 44 04 0d 4f 48 48 28 29 29 b9 77 ef de b5 6b d7 d2 d3 d3 e5 e6 7f f3 e6 cd 77 df 7d 97 | ..DD..OHH()).w...k..........w.}. |
| 0ee0 | f9 fb ee bb ef 4a 3a b9 4d 4b 4b bb 74 e9 52 5e 5e 9e 97 97 d7 ca 95 2b 99 70 33 33 b3 19 33 66 | .....J:.MKK.t.R^^......+.p33..3f |
| 0f00 | 1c 3b 76 8c fe 4d 4f 4f 1f 3e 7c 78 93 e6 5c 66 66 66 5a 5a 1a 7d 6c 52 74 2e 8a c2 e5 52 5a 5a | .;v..MOO.>|x..\fffZZ.}lRt....RZZ |
| 0f20 | ba 6d db 36 57 57 57 b9 87 88 8b 8b 2b 28 28 c8 cc cc cc c8 c8 c8 cf cf 8f 8f 8f 67 a2 dd b8 71 | .m.6WWW.....+((............g...q |
| 0f40 | e3 fa f5 eb 77 ef de 2d 2c 2c dc bc 79 73 93 87 66 b2 95 fc 8a a1 59 95 50 5b 5b 7b e4 c8 91 a1 | ....w..-,,..ys..f.....Y.P[[{.... |
| 0f60 | 43 87 2a 5f d4 b7 df 7e 9b 3e 1c 5f be 7c 59 47 47 e7 d2 a5 4b 84 90 6b d7 ae bd f3 ce 3b 84 10 | C.*_...~.>._.|YGG...K..k.....;.. |
| 0f80 | 7f 7f ff b0 b0 b0 bf fe fa eb 7f ff fb df 9d 3b 77 94 3f 05 96 fa 54 94 9c fd 46 92 ac 13 1a c2 | ...............;w.?...T...F..... |
| 0fa0 | 52 f3 ca 14 03 00 d0 02 ae 5d bb 36 79 f2 64 65 9a 5f 16 85 2a 42 6e 9b a9 4c 5b 27 f7 58 31 31 | R........].6y.de._..*Bn..L['.X11 |
| 0fc0 | 31 61 61 61 42 a1 50 20 10 6c d8 b0 21 21 21 01 8d bc 8a 1a 79 f6 43 28 6a c3 59 7a 7f 06 e5 fb | 1aaaB.P..l..!!!.....y.C(j.Yz.... |
| 0fe0 | 05 a9 fc 95 3c 05 96 68 b2 65 93 7b 0a 00 80 b6 85 a3 63 b3 b3 61 ce e8 ff 13 79 54 5f f6 d8 37 | ....<..h.e.{......c..a....yT_..7 |
| 1000 | 6f de 84 e7 4c 00 cc cc cc 2a 2a 2a 9a 54 87 e4 7b 6b 1b 1b 9b cb 97 2f 3b 38 38 b8 b9 b9 7d fe | o...L....***.T..{k...../;88...}. |
| 1020 | f9 e7 fd fb f7 27 84 14 17 17 bf f1 c6 1b b2 f3 ff 6b 6b 6b dd dc dc e8 3b fe 81 03 07 5e b8 70 | .....'...........kkk....;....^.p |
| 1040 | c1 d9 d9 99 10 92 93 93 33 62 c4 08 d9 4e d1 d2 d2 b2 a8 a8 48 53 53 93 fe 6d 6c 6c b4 b1 b1 a1 | ........3b...N......HSS..mll.... |
| 1060 | 5f 0d 70 b9 dc c7 8f 1f 9b 9b 9b d3 6c 1d 1c 1c 98 f0 f2 f2 72 da e9 de b9 73 47 5b 5b 3b 38 38 | _.p.........l.......r....sG[[;88 |
| 1080 | f8 8d 37 de 98 3e 7d ba ec f9 d2 c8 74 e3 e1 c3 87 3c 1e 8f 86 2b 3a 17 65 ce 91 a9 1c 03 03 83 | ..7..>}.....t....<...+:.e....... |
| 10a0 | 91 23 47 26 26 26 f6 e9 d3 47 f6 10 03 06 0c b8 70 e1 42 ef de bd 09 21 d9 d9 d9 53 a6 4c 79 f0 | .#G&&&...G......p.B....!...S.Ly. |
| 10c0 | e0 01 8d 96 99 99 c9 54 cb 94 29 53 ee df bf cf 72 68 a9 6c 99 33 22 84 34 59 09 92 d7 d1 d0 d0 | .......T..)S....rh.l.3".4Y...... |
| 10e0 | f0 e2 c5 8b 83 07 0f 56 b2 a8 57 af 5e 3d 7d fa f4 91 23 47 66 ce 9c 39 70 e0 c0 87 0f 1f a6 a6 | .......V..W.^=}...#Gf..9p....... |
| 1100 | a6 fa f9 f9 cd 9b 37 6f c2 84 09 83 06 0d 0a 08 08 98 3c 79 b2 bd bd 3d 73 08 25 4f 41 11 8a 92 | ......7o..........<y...=s.%OA... |
| 1120 | 2b ba 91 24 2f ae e4 ad c5 52 f3 4d 16 43 49 81 00 80 ee 43 4a 1d 92 8d 39 d3 f2 c8 6d 7e 59 14 | +..$/....R.M.CI....CJ...9...m~Y. |
| 1140 | 2a 29 64 49 81 cb 6d 33 95 69 eb 14 1d eb a3 8f 3e 1a 3a 74 a8 48 24 2a 2e 2e 8e 8d 8d 45 23 af | *)dI..m3.i......>.:t.H$*.....E#. |
| 1160 | a2 46 9e fd 10 8a da 70 45 bd bf 24 cd ea 17 24 b7 95 3c 05 96 68 2c 4f 26 e8 56 00 68 7d b7 22 | .F.....pE..$...$..<..h,O&.V.h}." |
| 1180 | dd 20 6f fc 93 6e 68 a1 be 00 50 1d e5 e5 e5 62 b1 f8 e9 d3 a7 2b 56 ac b8 7f ff be 83 83 43 41 | ..o..nh...P....b.....+V.......CA |
| 11a0 | 41 81 a7 a7 27 21 44 2c 16 8b 44 22 0e 87 43 63 66 64 64 44 45 45 dd bd 7b 97 7e 0e c7 84 17 17 | A...'!D,..D"..CcfddDEE..{.~..... |
| 11c0 | 17 3b 3a 3a d2 6d 27 27 27 45 9a 2f 2b 2b b3 b2 b2 a2 7f cb ca ca cc cc cc 98 bd b4 73 25 84 e8 | .;::.m'''E./++..............s%.. |
| 11e0 | eb eb 0b 85 42 c9 84 8e 8e 8e 1e 1e 1e e7 ce 9d f3 f1 f1 b9 7e fd 3a fb 28 10 45 f2 a1 44 d1 b9 | ....B...............~.:.(.E..D.. |
| 1200 | 28 0a 97 ad 9c 26 0f c1 e7 f3 99 b3 ee d5 ab 97 e4 48 88 64 b5 30 0f 34 2c 87 56 64 ac 2a 53 09 | (....&...........H.d.0.4,.Vd.*S. |
| 1220 | b4 a8 75 75 75 29 29 29 11 11 11 17 2e 5c 50 b2 a8 9e 9e 9e 6b d7 ae ad ad ad bd 75 eb d6 e1 c3 | ..uuu))).....\P.....k......u.... |
| 1240 | 87 87 0e 1d 5a 5b 5b 9b 99 99 b9 7f ff 7e 42 c8 f1 e3 c7 b7 6d db b6 7d fb 76 3d 3d bd c4 c4 44 | ....Z[[......~B.....m..}.v==...D |
| 1260 | 2f 2f af 96 9d 82 24 8a 92 2b 73 23 49 c2 52 f3 ca 14 03 00 d0 02 b8 5c 6e 69 69 a9 b5 b5 b5 a4 | //....$..+s#I.R........\nii..... |
| 1280 | c1 df dc b6 51 11 72 db 4c 65 da 3a 45 c7 f2 f2 f2 da bc 79 73 4d 4d cd d9 b3 67 d1 c8 ab ae 91 | ....Q.r.Le.:E......ysMM...g..... |
| 12a0 | 67 3f 04 0b 2c bd 7f cb fa 85 26 3b 1a 25 1f 12 94 29 1b 00 40 15 e0 6b 7f 00 54 0b 87 c3 71 76 | g?..,.....&;.%...)..@..k..T...qv |
| 12c0 | 76 3e 74 e8 50 50 50 50 75 75 35 8f c7 bb 77 ef 5e 49 49 49 69 69 69 79 79 79 59 59 19 8d b6 70 | v>t.PPPPuu5...w.^IIIiiiyyyYY...p |
| 12e0 | e1 c2 25 4b 96 dc bf 7f bf ac ac 2c 3f 3f 5f 2c 16 33 9d 68 5e 5e 1e dd ce cd cd 95 7b 08 0f 0f | ..%K.......,??_,.3.h^^......{... |
| 1300 | 8f 6f bf fd 96 f9 7b e5 ca 15 0f 0f 0f 25 8b 17 18 18 78 e0 c0 81 5f 7f fd 75 d4 a8 51 ba ba ba | .o....{......%....x..._..u..Q... |
| 1320 | cd 3a 35 45 e7 a2 28 bc 05 58 59 59 49 9e 3e f3 76 83 10 22 19 4e 1f 94 5b 7c 68 25 2b 41 4f 4f | .:5E..(..XYYI.>.v..".N..[|h%+AOO |
| 1340 | 6f c1 82 05 8a 56 4f 94 5b 54 3d 3d 3d 17 17 97 c3 87 0f 0f 19 32 c4 d4 d4 74 c8 90 21 07 0f 1e | o....VO.[T===........2...t..!... |
| 1360 | ec db b7 2f 3d ca b0 61 c3 4e 9f 3e 9d 93 93 b3 6b d7 ae e0 e0 e0 36 a9 3d 96 8b d2 e4 8d a4 64 | .../=..a.N.>....k.....6.=......d |
| 1380 | cd 03 00 54 c4 98 31 63 be f9 e6 9b d6 b4 8d 5a 5a 5a 75 75 75 74 5b aa f5 90 db 66 2a d3 d6 29 | ...T..1c.......ZZZuuut[....f*..) |
| 13a0 | 3a d6 fe fd fb 03 02 02 02 03 03 93 93 93 d1 c8 ab ae 91 67 3f 44 6b 68 6e bf d0 64 47 d3 b2 68 | :..................g?Dkhn..dG..h |
| 13c0 | 00 00 58 fe 4a d1 e2 55 40 14 25 c4 b2 22 40 45 d8 db db 7b 78 78 7c f1 c5 17 7e 7e 7e 2b 57 ae | ..X.J..U@.%.."@E...{xx|...~~~+W. |
| 13e0 | 7c f2 e4 89 50 28 7c f8 f0 21 b3 86 70 5d 5d 9d 8e 8e 8e 9e 9e 5e 7e 7e 7e 50 50 10 93 d0 d7 d7 | |...P(|..!..p]]......^~~~PP..... |
| 1400 | 37 3c 3c bc a4 a4 84 cf e7 87 85 85 c9 cd 3c 28 28 28 36 36 f6 da b5 6b 0d 0d 0d d7 ae 5d db b8 | 7<<...........<(((66...k.....].. |
| 1420 | 71 a3 64 0e ec 0c 1d 3a d4 c0 c0 20 3a 3a 9a 65 7d 26 45 28 3a 17 45 e1 2d c0 c7 c7 27 22 22 82 | q.d....:....::.e}&E(:.E.-...'"". |
| 1440 | 39 7d 1f 1f 1f 66 57 78 78 38 9f cf a7 e1 33 67 ce 6c d6 a1 4d 4d 4d e9 64 8a 66 55 42 5d 5d dd | 9}...fWxx8....3g.l..MMM.d.fUB]]. |
| 1460 | b1 63 c7 98 11 12 25 8b fa ce 3b ef ec dc b9 73 dc b8 71 84 90 b7 de 7a 6b e7 ce 9d cc e4 cc c5 | .c....%...;....s..q....zk....... |
| 1480 | 8b 17 3f 7a f4 a8 a1 a1 41 24 12 89 44 a2 66 9d 82 a2 c6 4a 51 f2 26 6f 24 a9 3a 61 a9 79 00 80 | ..?z....A$..D.f....JQ.&o$.:a.y.. |
| 14a0 | 8a 58 b7 6e 5d 42 42 c2 99 33 67 5e bd 7a d5 d0 d0 f0 d3 4f 3f 35 b7 6d 7c ed b5 d7 76 ef de 5d | .X.n]BB..3g^.z.....O?5.m|...v..] |
| 14c0 | 5b 5b 5b 50 50 c0 98 9a 2c 6d a6 32 6d 9d dc 63 a5 a5 a5 95 95 95 cd 9d 3b d7 cf cf ef de bd 7b | [[[PP...,m.2m..c........;......{ |
| 14e0 | b2 73 07 d0 c8 b7 b2 91 97 84 e5 10 8a 4e 59 19 94 79 c0 68 56 47 d3 b2 68 ad 39 05 00 40 57 b0 | .s...........NY..y.hVG..h.9..@W. |
| 1500 | fc 9b eb 45 bc fd 5d 52 c3 d5 b9 54 51 bb a4 ab f3 b6 65 e1 c2 85 c7 8f 1f 0f 0a 0a 1a 33 66 cc | ...E..]R...TQ.....e..........3f. |
| 1520 | b4 69 d3 6c 6d 6d 3f fa e8 a3 0f 3e f8 80 ee dd bb 77 6f 54 54 94 bd bd fd d4 a9 53 c7 8c 19 23 | .i.lmm?....>.....woTT......S...# |
| 1540 | f9 e8 63 69 69 39 68 d0 a0 31 63 c6 8c 1d 3b 56 6e ce 1e 1e 1e c9 c9 c9 21 21 21 f6 f6 f6 6b d7 | ..cii9h..1c...;Vn.......!!!...k. |
| 1560 | ae dd b5 6b 57 b3 5c ef 04 06 06 16 14 14 8c 1e 3d ba b9 67 a4 e8 5c 14 85 b7 80 c8 c8 48 6b 6b | ...kW.\.........=..g..\......Hkk |
| 1580 | eb 61 c3 86 0d 1f 3e dc ce ce 8e 59 f8 90 10 32 7a f4 e8 31 63 c6 0c 1e 3c 98 c7 e3 31 8f 2c 4a | .a....>....Y...2z..1c...<...1.,J | pre { line-height: 125%; margin: 0; }
td.linenos pre { color: #000000; background-color: #f0f0f0; padding: 0 5px 0 5px; }
span.linenos { color: #000000; background-color: #f0f0f0; padding: 0 5px 0 5px; }
td.linenos pre.special { color: #000000; background-color: #ffffc0; padding: 0 5px 0 5px; }
span.linenos.special { color: #000000; background-color: #ffffc0; padding: 0 5px 0 5px; }
.highlight .hll { background-color: #ffffcc }
.highlight { background: #ffffff; }
.highlight .c { color: #888888 } /* Comment */
.highlight .err { color: #a61717; background-color: #e3d2d2 } /* Error */
.highlight .k { color: #008800; font-weight: bold } /* Keyword */
.highlight .ch { color: #888888 } /* Comment.Hashbang */
.highlight .cm { color: #888888 } /* Comment.Multiline */
.highlight .cp { color: #cc0000; font-weight: bold } /* Comment.Preproc */
.highlight .cpf { color: #888888 } /* Comment.PreprocFile */
.highlight .c1 { color: #888888 } /* Comment.Single */
.highlight .cs { color: #cc0000; font-weight: bold; background-color: #fff0f0 } /* Comment.Special */
.highlight .gd { color: #000000; background-color: #ffdddd } /* Generic.Deleted */
.highlight .ge { font-style: italic } /* Generic.Emph */
.highlight .gr { color: #aa0000 } /* Generic.Error */
.highlight .gh { color: #333333 } /* Generic.Heading */
.highlight .gi { color: #000000; background-color: #ddffdd } /* Generic.Inserted */
.highlight .go { color: #888888 } /* Generic.Output */
.highlight .gp { color: #555555 } /* Generic.Prompt */
.highlight .gs { font-weight: bold } /* Generic.Strong */
.highlight .gu { color: #666666 } /* Generic.Subheading */
.highlight .gt { color: #aa0000 } /* Generic.Traceback */
.highlight .kc { color: #008800; font-weight: bold } /* Keyword.Constant */
.highlight .kd { color: #008800; font-weight: bold } /* Keyword.Declaration */
.highlight .kn { color: #008800; font-weight: bold } /* Keyword.Namespace */
.highlight .kp { color: #008800 } /* Keyword.Pseudo */
.highlight .kr { color: #008800; font-weight: bold } /* Keyword.Reserved */
.highlight .kt { color: #888888; font-weight: bold } /* Keyword.Type */
.highlight .m { color: #0000DD; font-weight: bold } /* Literal.Number */
.highlight .s { color: #dd2200; background-color: #fff0f0 } /* Literal.String */
.highlight .na { color: #336699 } /* Name.Attribute */
.highlight .nb { color: #003388 } /* Name.Builtin */
.highlight .nc { color: #bb0066; font-weight: bold } /* Name.Class */
.highlight .no { color: #003366; font-weight: bold } /* Name.Constant */
.highlight .nd { color: #555555 } /* Name.Decorator */
.highlight .ne { color: #bb0066; font-weight: bold } /* Name.Exception */
.highlight .nf { color: #0066bb; font-weight: bold } /* Name.Function */
.highlight .nl { color: #336699; font-style: italic } /* Name.Label */
.highlight .nn { color: #bb0066; font-weight: bold } /* Name.Namespace */
.highlight .py { color: #336699; font-weight: bold } /* Name.Property */
.highlight .nt { color: #bb0066; font-weight: bold } /* Name.Tag */
.highlight .nv { color: #336699 } /* Name.Variable */
.highlight .ow { color: #008800 } /* Operator.Word */
.highlight .w { color: #bbbbbb } /* Text.Whitespace */
.highlight .mb { color: #0000DD; font-weight: bold } /* Literal.Number.Bin */
.highlight .mf { color: #0000DD; font-weight: bold } /* Literal.Number.Float */
.highlight .mh { color: #0000DD; font-weight: bold } /* Literal.Number.Hex */
.highlight .mi { color: #0000DD; font-weight: bold } /* Literal.Number.Integer */
.highlight .mo { color: #0000DD; font-weight: bold } /* Literal.Number.Oct */
.highlight .sa { color: #dd2200; background-color: #fff0f0 } /* Literal.String.Affix */
.highlight .sb { color: #dd2200; background-color: #fff0f0 } /* Literal.String.Backtick */
.highlight .sc { color: #dd2200; background-color: #fff0f0 } /* Literal.String.Char */
.highlight .dl { color: #dd2200; background-color: #fff0f0 } /* Literal.String.Delimiter */
.highlight .sd { color: #dd2200; background-color: #fff0f0 } /* Literal.String.Doc */
.highlight .s2 { color: #dd2200; background-color: #fff0f0 } /* Literal.String.Double */
.highlight .se { color: #0044dd; background-color: #fff0f0 } /* Literal.String.Escape */
.highlight .sh { color: #dd2200; background-color: #fff0f0 } /* Literal.String.Heredoc */
.highlight .si { color: #3333bb; background-color: #fff0f0 } /* Literal.String.Interpol */
.highlight .sx { color: #22bb22; background-color: #f0fff0 } /* Literal.String.Other */
.highlight .sr { color: #008800; background-color: #fff0ff } /* Literal.String.Regex */
.highlight .s1 { color: #dd2200; background-color: #fff0f0 } /* Literal.String.Single */
.highlight .ss { color: #aa6600; background-color: #fff0f0 } /* Literal.String.Symbol */
.highlight .bp { color: #003388 } /* Name.Builtin.Pseudo */
.highlight .fm { color: #0066bb; font-weight: bold } /* Name.Function.Magic */
.highlight .vc { color: #336699 } /* Name.Variable.Class */
.highlight .vg { color: #dd7700 } /* Name.Variable.Global */
.highlight .vi { color: #3333bb } /* Name.Variable.Instance */
.highlight .vm { color: #336699 } /* Name.Variable.Magic */
.highlight .il { color: #0000DD; font-weight: bold } /* Literal.Number.Integer.Long */#! /usr/bin/env python2.3
##############################################################################
#
# Copyright (c) 2001, 2002 Zope Corporation and Contributors.
# All Rights Reserved.
#
# This software is subject to the provisions of the Zope Public License,
# Version 2.0 (ZPL). A copy of the ZPL should accompany this distribution.
# THIS SOFTWARE IS PROVIDED "AS IS" AND ANY AND ALL EXPRESS OR IMPLIED
# WARRANTIES ARE DISCLAIMED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
# WARRANTIES OF TITLE, MERCHANTABILITY, AGAINST INFRINGEMENT, AND FITNESS
# FOR A PARTICULAR PURPOSE.
#
##############################################################################
"""
test.py [-abBcdDfFgGhklLmMPprstTuUv] [modfilter [testfilter]]
Find and run tests written using the unittest module.
The test runner searches for Python modules that contain test suites.
It collects those suites, and runs the tests. There are many options
for controlling how the tests are run. There are options for using
the debugger, reporting code coverage, and checking for refcount problems.
The test runner uses the following rules for finding tests to run. It
searches for packages and modules that contain "tests" as a component
of the name, e.g. "frob.tests.nitz" matches this rule because tests is
a sub-package of frob. Within each "tests" package, it looks for
modules that begin with the name "test." For each test module, it
imports the module and calls the module's test_suite() function, which must
return a unittest TestSuite object.
Options can be specified as command line arguments (see below). However,
options may also be specified in a file named 'test.config', a Python
script which, if found, will be executed before the command line
arguments are processed.
The test.config script should specify options by setting zero or more of the
global variables: LEVEL, BUILD, and other capitalized variable names found in
the test runner script (see the list of global variables in process_args().).
-a level
--at-level level
--all
Run the tests at the given level. Any test at a level at or below
this is run, any test at a level above this is not run. Level 0
runs all tests. The default is to run tests at level 1. --all is
a shortcut for -a 0.
-b
--build
Run "python setup.py build" before running tests, where "python"
is the version of python used to run test.py. Highly recommended.
Tests will be run from the build directory.
-B
--build-inplace
Run "python setup.py build_ext -i" before running tests. Tests will be
run from the source directory.
-c
--pychecker
use pychecker
-d
--debug
Instead of the normal test harness, run a debug version which
doesn't catch any exceptions. This is occasionally handy when the
unittest code catching the exception doesn't work right.
Unfortunately, the debug harness doesn't print the name of the
test, so Use With Care.
-D
--debug-inplace
Works like -d, except that it loads pdb when an exception occurs.
--dir directory
-s directory
Option to limit where tests are searched for. This is important
when you *really* want to limit the code that gets run. This can
be specified more than once to run tests in two different parts of
the source tree.
For example, if refactoring interfaces, you don't want to see the way
you have broken setups for tests in other packages. You *just* want to
run the interface tests.
-f
--skip-unit
Run functional tests but not unit tests.
Note that functional tests will be skipped if the module
zope.app.tests.functional cannot be imported.
Functional tests also expect to find the file ftesting.zcml,
which is used to configure the functional-test run.
-F
DEPRECATED. Run both unit and functional tests.
This option is deprecated, because this is the new default mode.
Note that functional tests will be skipped if the module
zope.app.tests.functional cannot be imported.
-g threshold
--gc-threshold threshold
Set the garbage collector generation0 threshold. This can be used
to stress memory and gc correctness. Some crashes are only
reproducible when the threshold is set to 1 (agressive garbage
collection). Do "-g 0" to disable garbage collection altogether.
-G gc_option
--gc-option gc_option
Set the garbage collection debugging flags. The argument must be one
of the DEBUG_ flags defined bythe Python gc module. Multiple options
can be specified by using "-G OPTION1 -G OPTION2."
-k
--keepbytecode
Do not delete all stale bytecode before running tests
-l test_root
--libdir test_root
Search for tests starting in the specified start directory
(useful for testing components being developed outside the main
"src" or "build" trees).
-L
--loop
Keep running the selected tests in a loop. You may experience
memory leakage.
-m
-M minimal GUI. See -U.
-P
--profile
Run the tests under hotshot and display the top 50 stats, sorted by
cumulative time and number of calls.
-p
--progress
Show running progress. It can be combined with -v or -vv.
-r
--refcount
Look for refcount problems.
This requires that Python was built --with-pydebug.
-t
--top-fifty
Time the individual tests and print a list of the top 50, sorted from
longest to shortest.
--times n
--times outfile
With an integer argument, time the tests and print a list of the top <n>
tests, sorted from longest to shortest.
With a non-integer argument, specifies a file to which timing information
is to be printed.
-T
--trace
Use the trace module from Python for code coverage. The current
utility writes coverage files to a directory named `coverage' that
is parallel to `build'. It also prints a summary to stdout.
-u
--skip-functional
CHANGED. Run unit tests but not functional tests.
Note that the meaning of -u is changed from its former meaning,
which is now specified by -U or --gui.
-U
--gui
Use the PyUnit GUI instead of output to the command line. The GUI
imports tests on its own, taking care to reload all dependencies
on each run. The debug (-d), verbose (-v), progress (-p), and
Loop (-L) options will be ignored. The testfilter filter is also
not applied.
-m
-M
--minimal-gui
Note: -m is DEPRECATED in favour of -M or --minimal-gui.
-m starts the gui minimized. Double-clicking the progress bar
will start the import and run all tests.
-v
--verbose
Verbose output. With one -v, unittest prints a dot (".") for each
test run. With -vv, unittest prints the name of each test (for
some definition of "name" ...). With no -v, unittest is silent
until the end of the run, except when errors occur.
When -p is also specified, the meaning of -v is slightly
different. With -p and no -v only the percent indicator is
displayed. With -p and -v the test name of the current test is
shown to the right of the percent indicator. With -p and -vv the
test name is not truncated to fit into 80 columns and it is not
cleared after the test finishes.
modfilter
testfilter
Case-sensitive regexps to limit which tests are run, used in search
(not match) mode.
In an extension of Python regexp notation, a leading "!" is stripped
and causes the sense of the remaining regexp to be negated (so "!bc"
matches any string that does not match "bc", and vice versa).
By default these act like ".", i.e. nothing is excluded.
modfilter is applied to a test file's path, starting at "build" and
including (OS-dependent) path separators.
testfilter is applied to the (method) name of the unittest methods
contained in the test files whose paths modfilter matched.
Extreme (yet useful) examples:
test.py -vvb . "^testWriteClient$"
Builds the project silently, then runs unittest in verbose mode on all
tests whose names are precisely "testWriteClient". Useful when
debugging a specific test.
test.py -vvb . "!^testWriteClient$"
As before, but runs all tests whose names aren't precisely
"testWriteClient". Useful to avoid a specific failing test you don't
want to deal with just yet.
test.py -M . "!^testWriteClient$"
As before, but now opens up a minimized PyUnit GUI window (only showing
the progress bar). Useful for refactoring runs where you continually want
to make sure all tests still pass.
"""
import gc
import hotshot, hotshot.stats
import os
import re
import pdb
import sys
import threading # just to get at Thread objects created by tests
import time
import traceback
import unittest
import warnings
def set_trace_doctest(stdin=sys.stdin, stdout=sys.stdout, trace=pdb.set_trace):
sys.stdin = stdin
sys.stdout = stdout
trace()
pdb.set_trace_doctest = set_trace_doctest
from distutils.util import get_platform
PLAT_SPEC = "%s-%s" % (get_platform(), sys.version[0:3])
class ImmediateTestResult(unittest._TextTestResult):
__super_init = unittest._TextTestResult.__init__
__super_startTest = unittest._TextTestResult.startTest
__super_printErrors = unittest._TextTestResult.printErrors
def __init__(self, stream, descriptions, verbosity, debug=False,
count=None, progress=False):
self.__super_init(stream, descriptions, verbosity)
self._debug = debug
self._progress = progress
self._progressWithNames = False
self.count = count
self._testtimes = {}
if progress and verbosity == 1:
self.dots = False
self._progressWithNames = True
self._lastWidth = 0
self._maxWidth = 80
try:
import curses
except ImportError:
pass
else:
curses.setupterm()
self._maxWidth = curses.tigetnum('cols')
self._maxWidth -= len("xxxx/xxxx (xxx.x%): ") + 1
def stopTest(self, test):
self._testtimes[test] = time.time() - self._testtimes[test]
if gc.garbage:
print "The following test left garbage:"
print test
print gc.garbage
# XXX Perhaps eat the garbage here, so that the garbage isn't
# printed for every subsequent test.
# Did the test leave any new threads behind?
new_threads = [t for t in threading.enumerate()
if (t.isAlive()
and
t not in self._threads)]
if new_threads:
print "The following test left new threads behind:"
print test
print "New thread(s):", new_threads
def print_times(self, stream, count=None):
results = self._testtimes.items()
results.sort(lambda x, y: cmp(y[1], x[1]))
if count:
n = min(count, len(results))
if n:
print >>stream, "Top %d longest tests:" % n
else:
n = len(results)
if not n:
return
for i in range(n):
print >>stream, "%6dms" % int(results[i][1] * 1000), results[i][0]
def _print_traceback(self, msg, err, test, errlist):
if self.showAll or self.dots or self._progress:
self.stream.writeln("\n")
self._lastWidth = 0
tb = "".join(traceback.format_exception(*err))
self.stream.writeln(msg)
self.stream.writeln(tb)
errlist.append((test, tb))
def startTest(self, test):
if self._progress:
self.stream.write("\r%4d" % (self.testsRun + 1))
if self.count:
self.stream.write("/%d (%5.1f%%)" % (self.count,
(self.testsRun + 1) * 100.0 / self.count))
if self.showAll:
self.stream.write(": ")
elif self._progressWithNames:
# XXX will break with multibyte strings
name = self.getShortDescription(test)
width = len(name)
if width < self._lastWidth:
name += " " * (self._lastWidth - width)
self.stream.write(": %s" % name)
self._lastWidth = width
self.stream.flush()
self._threads = threading.enumerate()
self.__super_startTest(test)
self._testtimes[test] = time.time()
def getShortDescription(self, test):
s = self.getDescription(test)
if len(s) > self._maxWidth:
pos = s.find(" (")
if pos >= 0:
w = self._maxWidth - (pos + 5)
if w < 1:
# first portion (test method name) is too long
s = s[:self._maxWidth-3] + "..."
else:
pre = s[:pos+2]
post = s[-w:]
s = "%s...%s" % (pre, post)
return s[:self._maxWidth]
def addError(self, test, err):
if self._progress:
self.stream.write("\r")
if self._debug:
raise err[0], err[1], err[2]
self._print_traceback("Error in test %s" % test, err,
test, self.errors)
def addFailure(self, test, err):
if self._progress:
self.stream.write("\r")
if self._debug:
raise err[0], err[1], err[2]
self._print_traceback("Failure in test %s" % test, err,
test, self.failures)
def printErrors(self):
if self._progress and not (self.dots or self.showAll):
self.stream.writeln()
self.__super_printErrors()
def printErrorList(self, flavor, errors):
for test, err in errors:
self.stream.writeln(self.separator1)
self.stream.writeln("%s: %s" % (flavor, self.getDescription(test)))
self.stream.writeln(self.separator2)
self.stream.writeln(err)
class ImmediateTestRunner(unittest.TextTestRunner):
__super_init = unittest.TextTestRunner.__init__
def __init__(self, **kwarg):
debug = kwarg.get("debug")
if debug is not None:
del kwarg["debug"]
progress = kwarg.get("progress")
if progress is not None:
del kwarg["progress"]
profile = kwarg.get("profile")
if profile is not None:
del kwarg["profile"]
self.__super_init(**kwarg)
self._debug = debug
self._progress = progress
self._profile = profile
# Create the test result here, so that we can add errors if
# the test suite search process has problems. The count
# attribute must be set in run(), because we won't know the
# count until all test suites have been found.
self.result = ImmediateTestResult(
self.stream, self.descriptions, self.verbosity, debug=self._debug,
progress=self._progress)
def _makeResult(self):
# Needed base class run method.
return self.result
def run(self, test):
self.result.count = test.countTestCases()
if self._debug:
club_debug(test)
if self._profile:
prof = hotshot.Profile("tests_profile.prof")
args = (self, test)
r = prof.runcall(unittest.TextTestRunner.run, *args)
prof.close()
stats = hotshot.stats.load("tests_profile.prof")
stats.sort_stats('cumulative', 'calls')
stats.print_stats(50)
return r
return unittest.TextTestRunner.run(self, test)
def club_debug(test):
# Beat a debug flag into debug-aware test cases
setDebugModeOn = getattr(test, 'setDebugModeOn', None)
if setDebugModeOn is not None:
setDebugModeOn()
for subtest in getattr(test, '_tests', ()):
club_debug(subtest)
# setup list of directories to put on the path
class PathInit:
def __init__(self, build, build_inplace, libdir=None):
self.inplace = None
# Figure out if we should test in-place or test in-build. If the -b
# or -B option was given, test in the place we were told to build in.
# Otherwise, we'll look for a build directory and if we find one,
# we'll test there, otherwise we'll test in-place.
if build:
self.inplace = build_inplace
if self.inplace is None:
# Need to figure it out
if os.path.isdir(os.path.join("build", "lib.%s" % PLAT_SPEC)):
self.inplace = False
else:
self.inplace = True
# Calculate which directories we're going to add to sys.path, and cd
# to the appropriate working directory
self.org_cwd = os.getcwd()
if self.inplace:
self.libdir = "src"
else:
self.libdir = "lib.%s" % PLAT_SPEC
os.chdir("build")
# Hack sys.path
self.cwd = os.getcwd()
sys.path.insert(0, os.path.join(self.cwd, self.libdir))
# Hack again for external products.
global functional
kind = functional and "FUNCTIONAL" or "UNIT"
if libdir:
extra = os.path.join(self.org_cwd, libdir)
print "Running %s tests from %s" % (kind, extra)
self.libdir = extra
sys.path.insert(0, extra)
else:
print "Running %s tests from %s" % (kind, self.cwd)
# Make sure functional tests find ftesting.zcml
if functional:
config_file = 'ftesting.zcml'
if not self.inplace:
# We chdired into build, so ftesting.zcml is in the
# parent directory
config_file = os.path.join('..', 'ftesting.zcml')
print "Parsing %s" % config_file
from zope.app.tests.functional import FunctionalTestSetup
FunctionalTestSetup(config_file)
def match(rx, s):
if not rx:
return True
if rx[0] == "!":
return re.search(rx[1:], s) is None
else:
return re.search(rx, s) is not None
class TestFileFinder:
def __init__(self, prefix):
self.files = []
self._plen = len(prefix)
if not prefix.endswith(os.sep):
self._plen += 1
global functional
if functional:
self.dirname = "ftests"
else:
self.dirname = "tests"
def visit(self, rx, dir, files):
if os.path.split(dir)[1] != self.dirname:
# Allow tests/ftests module rather than package.
modfname = self.dirname + '.py'
if modfname in files:
path = os.path.join(dir, modfname)
if match(rx, path):
self.files.append(path)
return
return
# ignore tests that aren't in packages
if not "__init__.py" in files:
if not files or files == ["CVS"]:
return
print "not a package", dir
return
# Put matching files in matches. If matches is non-empty,
# then make sure that the package is importable.
matches = []
for file in files:
if file.startswith('test') and os.path.splitext(file)[-1] == '.py':
path = os.path.join(dir, file)
if match(rx, path):
matches.append(path)
# ignore tests when the package can't be imported, possibly due to
# dependency failures.
pkg = dir[self._plen:].replace(os.sep, '.')
try:
__import__(pkg)
# We specifically do not want to catch ImportError since that's useful
# information to know when running the tests.
except RuntimeError, e:
if VERBOSE:
print "skipping %s because: %s" % (pkg, e)
return
else:
self.files.extend(matches)
def module_from_path(self, path):
"""Return the Python package name indicated by the filesystem path."""
assert path.endswith(".py")
path = path[self._plen:-3]
mod = path.replace(os.sep, ".")
return mod
def walk_with_symlinks(top, func, arg):
"""Like os.path.walk, but follows symlinks on POSIX systems.
This could theoreticaly result in an infinite loop, if you create symlink
cycles in your Zope sandbox, so don't do that.
"""
try:
names = os.listdir(top)
except os.error:
return
func(arg, top, names)
exceptions = ('.', '..')
for name in names:
if name not in exceptions:
name = os.path.join(top, name)
if os.path.isdir(name):
walk_with_symlinks(name, func, arg)
def find_test_dir(dir):
if os.path.exists(dir):
return dir
d = os.path.join(pathinit.libdir, dir)
if os.path.exists(d):
if os.path.isdir(d):
return d
raise ValueError("%s does not exist and %s is not a directory"
% (dir, d))
raise ValueError("%s does not exist!" % dir)
def find_tests(rx):
global finder
finder = TestFileFinder(pathinit.libdir)
if TEST_DIRS:
for d in TEST_DIRS:
d = find_test_dir(d)
walk_with_symlinks(d, finder.visit, rx)
else:
walk_with_symlinks(pathinit.libdir, finder.visit, rx)
return finder.files
def package_import(modname):
mod = __import__(modname)
for part in modname.split(".")[1:]:
mod = getattr(mod, part)
return mod
class PseudoTestCase:
"""Minimal test case objects to create error reports.
If test.py finds something that looks like it should be a test but
can't load it or find its test suite, it will report an error
using a PseudoTestCase.
"""
def __init__(self, name, descr=None):
self.name = name
self.descr = descr
def shortDescription(self):
return self.descr
def __str__(self):
return "Invalid Test (%s)" % self.name
def get_suite(file, result):
modname = finder.module_from_path(file)
try:
mod = package_import(modname)
return mod.test_suite()
except:
result.addError(PseudoTestCase(modname), sys.exc_info())
return None
def filter_testcases(s, rx):
new = unittest.TestSuite()
for test in s._tests:
# See if the levels match
dolevel = (LEVEL == 0) or LEVEL >= getattr(test, "level", 0)
if not dolevel:
continue
if isinstance(test, unittest.TestCase):
name = test.id() # Full test name: package.module.class.method
name = name[1 + name.rfind("."):] # extract method name
if not rx or match(rx, name):
new.addTest(test)
else:
filtered = filter_testcases(test, rx)
if filtered:
new.addTest(filtered)
return new
def gui_runner(files, test_filter):
if BUILD_INPLACE:
utildir = os.path.join(os.getcwd(), "utilities")
else:
utildir = os.path.join(os.getcwd(), "..", "utilities")
sys.path.append(utildir)
import unittestgui
suites = []
for file in files:
suites.append(finder.module_from_path(file) + ".test_suite")
suites = ", ".join(suites)
minimal = (GUI == "minimal")
unittestgui.main(suites, minimal)
class TrackRefs:
"""Object to track reference counts across test runs."""
def __init__(self):
self.type2count = {}
self.type2all = {}
def update(self):
obs = sys.getobjects(0)
type2count = {}
type2all = {}
for o in obs:
all = sys.getrefcount(o)
if type(o) is str and o == '<dummy key>':
# avoid dictionary madness
continue
t = type(o)
if t in type2count:
type2count[t] += 1
type2all[t] += all
else:
type2count[t] = 1
type2all[t] = all
ct = [(type2count[t] - self.type2count.get(t, 0),
type2all[t] - self.type2all.get(t, 0),
t)
for t in type2count.iterkeys()]
ct.sort()
ct.reverse()
printed = False
for delta1, delta2, t in ct:
if delta1 or delta2:
if not printed:
print "%-55s %8s %8s" % ('', 'insts', 'refs')
printed = True
print "%-55s %8d %8d" % (t, delta1, delta2)
self.type2count = type2count
self.type2all = type2all
def runner(files, test_filter, debug):
runner = ImmediateTestRunner(verbosity=VERBOSE, debug=DEBUG,
progress=PROGRESS, profile=PROFILE,
descriptions=False)
suite = unittest.TestSuite()
for file in files:
s = get_suite(file, runner.result)
# See if the levels match
dolevel = (LEVEL == 0) or LEVEL >= getattr(s, "level", 0)
if s is not None and dolevel:
s = filter_testcases(s, test_filter)
suite.addTest(s)
try:
r = runner.run(suite)
if TIMESFN:
r.print_times(open(TIMESFN, "w"))
if VERBOSE:
print "Wrote timing data to", TIMESFN
if TIMETESTS:
r.print_times(sys.stdout, TIMETESTS)
except:
if DEBUGGER:
print "%s:" % (sys.exc_info()[0], )
print sys.exc_info()[1]
pdb.post_mortem(sys.exc_info()[2])
else:
raise
def remove_stale_bytecode(arg, dirname, names):
names = map(os.path.normcase, names)
for name in names:
if name.endswith(".pyc") or name.endswith(".pyo"):
srcname = name[:-1]
if srcname not in names:
fullname = os.path.join(dirname, name)
print "Removing stale bytecode file", fullname
os.unlink(fullname)
def main(module_filter, test_filter, libdir):
if not KEEP_STALE_BYTECODE:
os.path.walk(os.curdir, remove_stale_bytecode, None)
configure_logging()
# Initialize the path and cwd
global pathinit
pathinit = PathInit(BUILD, BUILD_INPLACE, libdir)
files = find_tests(module_filter)
files.sort()
if GUI:
gui_runner(files, test_filter)
elif LOOP:
if REFCOUNT:
rc = sys.gettotalrefcount()
track = TrackRefs()
while True:
runner(files, test_filter, DEBUG)
gc.collect()
if gc.garbage:
print "GARBAGE:", len(gc.garbage), gc.garbage
return
if REFCOUNT:
prev = rc
rc = sys.gettotalrefcount()
print "totalrefcount=%-8d change=%-6d" % (rc, rc - prev)
track.update()
else:
runner(files, test_filter, DEBUG)
os.chdir(pathinit.org_cwd)
def configure_logging():
"""Initialize the logging module."""
import logging.config
# Get the log.ini file from the current directory instead of possibly
# buried in the build directory. XXX This isn't perfect because if
# log.ini specifies a log file, it'll be relative to the build directory.
# Hmm...
logini = os.path.abspath("log.ini")
if os.path.exists(logini):
logging.config.fileConfig(logini)
else:
logging.basicConfig()
if os.environ.has_key("LOGGING"):
level = int(os.environ["LOGGING"])
logging.getLogger().setLevel(level)
def process_args(argv=None):
import getopt
global MODULE_FILTER
global TEST_FILTER
global VERBOSE
global LOOP
global GUI
global TRACE
global REFCOUNT
global DEBUG
global DEBUGGER
global BUILD
global LEVEL
global LIBDIR
global TIMESFN
global TIMETESTS
global PROGRESS
global BUILD_INPLACE
global KEEP_STALE_BYTECODE
global TEST_DIRS
global PROFILE
global GC_THRESHOLD
global GC_FLAGS
global RUN_UNIT
global RUN_FUNCTIONAL
global PYCHECKER
if argv is None:
argv = sys.argv
MODULE_FILTER = None
TEST_FILTER = None
VERBOSE = 0
LOOP = False
GUI = False
TRACE = False
REFCOUNT = False
DEBUG = False # Don't collect test results; simply let tests crash
DEBUGGER = False
BUILD = False
BUILD_INPLACE = False
GC_THRESHOLD = None
gcdebug = 0
GC_FLAGS = []
LEVEL = 1
LIBDIR = None
PROGRESS = False
TIMESFN = None
TIMETESTS = 0
KEEP_STALE_BYTECODE = 0
RUN_UNIT = True
RUN_FUNCTIONAL = True
TEST_DIRS = []
PROFILE = False
PYCHECKER = False
config_filename = 'test.config'
# import the config file
if os.path.isfile(config_filename):
print 'Configuration file found.'
execfile(config_filename, globals())
try:
opts, args = getopt.getopt(argv[1:], "a:bBcdDfFg:G:hkl:LmMPprs:tTuUv",
["all", "help", "libdir=", "times=",
"keepbytecode", "dir=", "build",
"build-inplace",
"at-level=",
"pychecker", "debug", "pdebug",
"gc-threshold=", "gc-option=",
"loop", "gui", "minimal-gui",
"profile", "progress", "refcount", "trace",
"top-fifty", "verbose",
])
# fixme: add the long names
# fixme: add the extra documentation
# fixme: test for functional first!
except getopt.error, msg:
print msg
print "Try `python %s -h' for more information." % argv[0]
sys.exit(2)
for k, v in opts:
if k in ("-a", "--at-level"):
LEVEL = int(v)
elif k == "--all":
LEVEL = 0
os.environ["COMPLAIN_IF_TESTS_MISSED"]='1'
elif k in ("-b", "--build"):
BUILD = True
elif k in ("-B", "--build-inplace"):
BUILD = BUILD_INPLACE = True
elif k in("-c", "--pychecker"):
PYCHECKER = True
elif k in ("-d", "--debug"):
DEBUG = True
elif k in ("-D", "--pdebug"):
DEBUG = True
DEBUGGER = True
elif k in ("-f", "--skip-unit"):
RUN_UNIT = False
elif k in ("-u", "--skip-functional"):
RUN_FUNCTIONAL = False
elif k == "-F":
message = 'Unit plus functional is the default behaviour.'
warnings.warn(message, DeprecationWarning)
RUN_UNIT = True
RUN_FUNCTIONAL = True
elif k in ("-h", "--help"):
print __doc__
sys.exit(0)
elif k in ("-g", "--gc-threshold"):
GC_THRESHOLD = int(v)
elif k in ("-G", "--gc-option"):
if not v.startswith("DEBUG_"):
print "-G argument must be DEBUG_ flag, not", repr(v)
sys.exit(1)
GC_FLAGS.append(v)
elif k in ('-k', '--keepbytecode'):
KEEP_STALE_BYTECODE = 1
elif k in ('-l', '--libdir'):
LIBDIR = v
elif k in ("-L", "--loop"):
LOOP = 1
elif k == "-m":
GUI = "minimal"
msg = "Use -M or --minimal-gui instead of -m."
warnings.warn(msg, DeprecationWarning)
elif k in ("-M", "--minimal-gui"):
GUI = "minimal"
elif k in ("-P", "--profile"):
PROFILE = True
elif k in ("-p", "--progress"):
PROGRESS = True
elif k in ("-r", "--refcount"):
REFCOUNT = True
elif k in ("-T", "--trace"):
TRACE = True
elif k in ("-t", "--top-fifty"):
if not TIMETESTS:
TIMETESTS = 50
elif k in ("-u", "--gui"):
GUI = 1
elif k in ("-v", "--verbose"):
VERBOSE += 1
elif k == "--times":
try:
TIMETESTS = int(v)
except ValueError:
# must be a filename to write
TIMESFN = v
elif k in ('-s', '--dir'):
TEST_DIRS.append(v)
if PYCHECKER:
# make sure you have a recent version of pychecker
if not os.environ.get("PYCHECKER"):
os.environ["PYCHECKER"] = "-q"
import pychecker.checker
if REFCOUNT and not hasattr(sys, "gettotalrefcount"):
print "-r ignored, because it needs a debug build of Python"
REFCOUNT = False
if sys.version_info < ( 2,3,2 ):
print """\
ERROR: Your python version is not supported by Zope3.
Zope3 needs Python 2.3.2 or greater. You are running:""" + sys.version
sys.exit(1)
if GC_THRESHOLD is not None:
if GC_THRESHOLD == 0:
gc.disable()
print "gc disabled"
else:
gc.set_threshold(GC_THRESHOLD)
print "gc threshold:", gc.get_threshold()
if GC_FLAGS:
val = 0
for flag in GC_FLAGS:
v = getattr(gc, flag, None)
if v is None:
print "Unknown gc flag", repr(flag)
print gc.set_debug.__doc__
sys.exit(1)
val |= v
gcdebug |= v
if gcdebug:
gc.set_debug(gcdebug)
if BUILD:
# Python 2.3 is more sane in its non -q output
if sys.hexversion >= 0x02030000:
qflag = ""
else:
qflag = "-q"
cmd = sys.executable + " setup.py " + qflag + " build"
if BUILD_INPLACE:
cmd += "_ext -i"
if VERBOSE:
print cmd
sts = os.system(cmd)
if sts:
print "Build failed", hex(sts)
sys.exit(1)
k = []
if RUN_UNIT:
k.append(False)
if RUN_FUNCTIONAL:
k.append(True)
global functional
for functional in k:
if VERBOSE:
kind = functional and "FUNCTIONAL" or "UNIT"
if LEVEL == 0:
print "Running %s tests at all levels" % kind
else:
print "Running %s tests at level %d" % (kind, LEVEL)
# This was to avoid functional tests outside of z3, but this doesn't really
# work right.
## if functional:
## try:
## from zope.app.tests.functional import FunctionalTestSetup
## except ImportError:
## raise
## print ('Skipping functional tests: could not import '
## 'zope.app.tests.functional')
## continue
# XXX We want to change *visible* warnings into errors. The next
# line changes all warnings into errors, including warnings we
# normally never see. In particular, test_datetime does some
# short-integer arithmetic that overflows to long ints, and, by
# default, Python doesn't display the overflow warning that can
# be enabled when this happens. The next line turns that into an
# error instead. Guido suggests that a better to get what we're
# after is to replace warnings.showwarning() with our own thing
# that raises an error.
## warnings.filterwarnings("error")
warnings.filterwarnings("ignore", module="logging")
if args:
if len(args) > 1:
TEST_FILTER = args[1]
MODULE_FILTER = args[0]
try:
if TRACE:
# if the trace module is used, then we don't exit with
# status if on a false return value from main.
coverdir = os.path.join(os.getcwd(), "coverage")
import trace
ignoremods = ["os", "posixpath", "stat"]
tracer = trace.Trace(ignoredirs=[sys.prefix, sys.exec_prefix],
ignoremods=ignoremods,
trace=False, count=True)
tracer.runctx("main(MODULE_FILTER, TEST_FILTER, LIBDIR)",
globals=globals(), locals=vars())
r = tracer.results()
path = "/tmp/trace.%s" % os.getpid()
import cPickle
f = open(path, "wb")
cPickle.dump(r, f)
f.close()
print path
r.write_results(show_missing=True,
summary=True, coverdir=coverdir)
else:
bad = main(MODULE_FILTER, TEST_FILTER, LIBDIR)
if bad:
sys.exit(1)
except ImportError, err:
print err
print sys.path
raise
if __name__ == "__main__":
process_args()