/[theodore]/bunnyblog/modules/yaml/representer.pyc


UCC Code Repository

Contents of /bunnyblog/modules/yaml/representer.pyc

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1 - (show annotations) (download) (as text)
Tue Jan 29 14:32:01 2008 UTC (12 years ago) by svn-admin
File MIME type: application/octet-stream
File size: 13447 byte(s)
Re-import of repository after repository database corruption.

1
2 >HFc@sΤddddgZdkTdkTdkZyeWn ej
3 odklZnXdkZdk Z dk
4 Z
5 de fd„ƒYZ de fd„ƒYZdefd „ƒYZeiedƒeiƒeieeiƒeieeiƒeieeiƒeieeiƒeieeiƒeieeiƒeie ei!ƒeie"ei!ƒeie#ei$ƒeieei%ƒeiei&ei'ƒeieiei(ƒeidei)ƒdefd
6 „ƒYZ*e*iee*iƒe*iee*iƒe*iee*iƒe*ie+e*i,ƒe*ie"e*i-ƒe*iee*i.ƒe*ie
7 i/e*i.ƒe*ie
8 i0e*i.ƒe*ie
9 i1e*i.ƒe*ie
10 i2e*i3ƒe*i4e
11 i5e*i6ƒe*i4e e*i7ƒdS( tBaseRepresentertSafeRepresentert RepresentertRepresenterError(t*N(sSetcBstZRS(N(t__name__t
12 __module__(((t./modules/yaml/representer.pyRscBs•tZhZhZddd„Zd„Zd„Zd„Zd„Z e
13 e ƒZ d„Z e
14 e ƒZ dd„Z dd„Z dd „Zd
15 „ZRS( NcCs1||_||_h|_g|_d|_dS(N(t default_styletselftdefault_flow_styletrepresented_objectst object_keepertNonet alias_key(R RR
16 ((Rt__init__s
17     cCs;|i|ƒ}|i|ƒh|_g|_d|_dS(N( R trepresent_datatdatatnodet serializeR R R R(R RR((Rt represent s
18    cCs7|g}x'|iD]}|i|i|ƒƒqW|S(N(tclstbasest __bases__tbasetextendR tget_classobj_bases(R RRR((RR's
19  
20 cCs›|i|ƒo d|_nt|ƒ|_|idj o?|i|ijo|i|i}|Sn|ii |ƒnt
21 |ƒi }t
22 |ƒt ijo |i|iƒt|ƒ}n|d|ijo|i|d||ƒ}n¦x’|D]1}||ijo|i|||ƒ}PqωqωWd|ijo|id||ƒ}n@d|ijo|id||ƒ}ntdt|ƒƒ}|S(Ni(R tignore_aliasesRR RtidR RR tappendttypet__mro__t
23 data_typesttypest InstanceTypeRt __class__tlisttyaml_representerst data_typetyaml_multi_representerst
24 ScalarNodetunicode(R RRR&R ((RR-s0   cCs7d|ijo|iiƒ|_n||i|<dS(NR%(Rt__dict__R%tcopyt representerR&(RR&R,((Rtadd_representerOscCs7d|ijo|iiƒ|_n||i|<dS(NR'(RR*R'R+R,R&(RR&R,((Rtadd_multi_representerUscCsW|djo |i}nt||d|ƒ}|idj o||i |i<n|S(Ntstyle(
25 R/R R RR(ttagtvalueRRR (R R0R1R/R((Rtrepresent_scalar[s   c CsΥg}t||d|ƒ}|idj o||i|i<nt }xO|D]G}|i |ƒ}t|tƒo|i p
26 t}n|i|ƒqLW|djo-|idj o|i|_qΡ||_n|S(Nt
27 flow_style(R1t SequenceNodeR0R3RR RR R tTruet
28 best_styletsequencetitemRt node_itemt
29 isinstanceR(R/tFalseRR
30 ( R R0R7R3RR6R1R8R9((Rtrepresent_sequencecs 
31   c Cs?g}t||d|ƒ}|idj o||i|i<nt }t |dƒo|i ƒ}|iƒnx|D]‡\}
32 }|i|
33 ƒ} |i|ƒ}t| tƒo| i p
34 t}nt|tƒo|i p
35 t}n|i| |fƒqvW|djo-|idj o|i|_q;||_n|S(NR3titems(R1t MappingNodeR0R3RR RR R R5R6thasattrtmappingR=tsorttitem_keyt
36 item_valueRtnode_keyt
37 node_valueR:R(R/R;RR
38 ( R R0R@R3RRCR6R1RERDRB((Rtrepresent_mappingus,  
39 
40   cCstS(N(R;(R R((RRs(RRR%R'R RRRRR-t classmethodR.R2R<RFR(((RRs   "       cBsΗtZd„Zd„Zd„Zd„Zd„Zd„Zd„ZdZ x,e
41 e ƒe
42 e e ƒjoe e 9Z qNWd „Z d
43 „Z d „Z d „Zd „Zd„Zdd„Zd„ZRS(NcCsF|dfgjotSnt|tttttfƒotSndS(N( RR R5R:tstrR)tbooltinttfloat(R R((RR’scCs|iddƒS(Nutag:yaml.org,2002:nullunull(R R2(R R((Rtrepresent_none˜s cCs›d}d}yt|dƒ}d}Wn]tj
44 oQyt|dƒ}d}Wq…tj
45 o"|idƒ}d}d}q…XnX|i||d|ƒS(Ntasciiutag:yaml.org,2002:strsutf-8tbase64utag:yaml.org,2002:binaryt|R/( R R0R/R)RtUnicodeDecodeErrortencodeR R2(R RR/R0((Rt represent_strœs
46 
47 cCs|id|ƒS(Nutag:yaml.org,2002:str(R R2R(R R((Rtrepresent_unicode¬scCs'|o
48 d}nd}|id|ƒS(Nutrueufalseutag:yaml.org,2002:bool(RR1R R2(R RR1((Rtrepresent_bool―s
49 cCs|idt|ƒƒS(Nutag:yaml.org,2002:int(R R2R)R(R R((Rt represent_intΆscCs|idt|ƒƒS(Nutag:yaml.org,2002:int(R R2R)R(R R((Rtrepresent_longΉsf1.0000000000000001e+300cCsΑ||jp|djo|djo
50 d}n||ijo
51 d}ng||i jo
52 d}nLtt|ƒƒiƒ}d|jo&d|jo|iddd ƒ}n|id
53 |ƒS( Nf0.0f1.0u.nanu.infu-.infu.ueu.0eiutag:yaml.org,2002:float( RR1R t inf_valueR)treprtlowertreplaceR2(R RR1((Rtrepresent_floatΐs'
54 
55 
56 cCs|id|ƒS(Nutag:yaml.org,2002:seq(R R<R(R R((Rtrepresent_listΤscCs|id|ƒS(Nutag:yaml.org,2002:map(R RFR(R R((Rtrepresent_dictγscCs1h}x|D]}d||<q W|id|ƒS(Nutag:yaml.org,2002:set(R1RtkeyR R RF(R RR^R1((Rt represent_setζs
57 cCs"t|iƒƒ}|id|ƒS(Nutag:yaml.org,2002:timestamp(R)Rt isoformatR1R R2(R RR1((Rtrepresent_dateμscCs%t|idƒƒ}|id|ƒS(Nt utag:yaml.org,2002:timestamp(R)RR`R1R R2(R RR1((Rtrepresent_datetimeπscCsEt|dƒo|iƒ}n|iiƒ}|i||d|ƒS(Nt __getstate__R3(
58 R?RRdtstateR*R+R RFR0R3(R R0RRR3Re((Rtrepresent_yaml_objectτscCstd|ƒ‚dS(Nscannot represent an object: %s(RR(R R((Rtrepresent_undefinedϋs(RRRRLRRRSRTRURVRWRXR[R\R]R_RaRcR RfRg(((RRs&              cBsYtZd„Zd„Zd„Zd„Zd„Zd„Zd„Zd„Z d „Z
59 RS(
60 NcCs›d}d}yt|dƒ}d}Wn]tj
61 oQyt|dƒ}d}Wq…tj
62 o"|idƒ}d}d}q…XnX|i||d|ƒS( NRMutag:yaml.org,2002:strsutf-8utag:yaml.org,2002:python/strRNutag:yaml.org,2002:binaryROR/( R R0R/R)RRPRQR R2(R RR/R0((RRR)s
63 
64 cCsId}y|idƒd}Wntj
65 o d}nX|i||ƒS(NRMu tag:yaml.org,2002:python/unicodeutag:yaml.org,2002:str(R R0RRQtUnicodeEncodeErrorR R2(R RR0((RRS9s 
66  cCs9d}t|ƒ|j o
67 d}n|i|t|ƒƒS(Nutag:yaml.org,2002:intutag:yaml.org,2002:python/long(R0RJRR R2R)(R RR0((RRVBs
68 cCs’|idjod|i}nb|idjod|i}nA|idjod|i|if}nd|i|if}|id|ƒS(Nf0.0u%ru%rjiu%r+%rju%r%rju tag:yaml.org,2002:python/complex(RtimagtrealR R2(R R((Rtrepresent_complexHscCs|id|ƒS(Nutag:yaml.org,2002:python/tuple(R R<R(R R((Rtrepresent_tupleSscCs*d|i|if}|id|dƒS(Nu%s.%sutag:yaml.org,2002:python/name:u(RRRtnameR R2(R RRm((Rtrepresent_nameVscCs|id|idƒS(Nu tag:yaml.org,2002:python/module:u(R R2RR(R R((Rtrepresent_moduleZscCs|i}d|i|if}d}d}t |dƒot
69 |i ƒƒ}nt |dƒo|i ƒ}n
70 |i }|djo(t|tƒo|id||ƒSnt|tƒo | o|id||ƒSnh}|o||d<n||d<|id||ƒS(Nu%s.%st__getinitargs__Rdu tag:yaml.org,2002:python/object:u$tag:yaml.org,2002:python/object/new:targsRe(RR#RRRt
71 class_nameR RqReR?R$RpRdR*R:tdictR RFR<R1(R RRrRqR1ReR((Rtrepresent_instance^s$  
72 c Csot|ƒ} | tijoti| |ƒ}nTt|dƒo|idƒ}n1t|dƒo|iƒ}nt d|ƒ‚t
73 |ƒdgdd }|\}} }}} t
74 | ƒ} |djo
75 h}n|dj ot
76 |ƒ}n| dj ot| ƒ} n|idjo$| d}| d} d }t}n d
77 }t}d |i|if}| o?| o7| o/t|tƒo|o|id ||ƒSn| o8| o0t|tƒo | o|i||| ƒSnh}
78 | o| |
79 d <n|pt|tƒ o||
80 d<n|o||
81 d<n| o| |
82 d<n|i|||
83 ƒS(Nt __reduce_ex__it
84 __reduce__scannot represent object: %rit
85 __newobj__iiu$tag:yaml.org,2002:python/object/new:u&tag:yaml.org,2002:python/object/apply:u%s.%su tag:yaml.org,2002:python/object:RqRet listitemst dictitems(RRRtcopy_regtdispatch_tabletreduceR?RuRvRR$R tfunctionRqReRxRyRsRR0R5tnewobjR;Rt function_nameR:R RFR<R1( R RR|RxR~R0ReRR}RqR1RyR((Rtrepresent_object‡sN   
86   
87 
88 
89 /(( RRRRRSRVRkRlRnRoRtR€(((RR's      )(8t__all__terrortnodestdatetimetsett NameErrortsetstSettsysRzR!t YAMLErrorRtobjectRRR-RR RLRHRRR)RSRIRTRJRUtlongRVRKR[R$R\ttupleRsR]R_tdateRaRcRgRtcomplexRkRlRnt ClassTypet FunctionTypetBuiltinFunctionTypet
90 ModuleTypeRoR.R"RtR€(
91 R…RzR„RRRRR‰R!R((Rt?s€ |n
92  
93  
94  
95  
96  
97  
98  
99  
100  
101  
102  
103  
104  
105 ž 
106  
107  
108  
109  
110  
111  
112  
113  
114  
115  
116  

Properties

Name Value
svn:mime-type application/octet-stream

Managed by UCC Webmasters ViewVC Help
Powered by ViewVC 1.1.26