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


UCC Code Repository

Contents of /bunnyblog/modules/yaml/__init__.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, 2 months ago) by svn-admin
File MIME type: application/octet-stream
File size: 10515 byte(s)
Error occurred while calculating annotation data.
Re-import of repository after repository database corruption.

1
2 Œ™@Fc@sÝdkTdkTdkTdkTdkTdkTy dkTWnej
3 onXed„Z ed„Z
4 ed„Z ed„Z ed„Z ed„Zd„Zd„Zdedddddd „Zdedddddd
5 ddddd „ Zded „Zdedddddddd
6 ddddd „Zded„Zdd„Zdd„Zdeed„Zdeed„Zed„Zed„Zed„Zed„Zde fd„ƒYZ!de"fd„ƒYZ#dS((t*ccs/||ƒ}x|iƒo|iƒVqWdS(s9
7 Scan a YAML stream and produce scanning tokens.
8 N(tLoadertstreamtloadert check_tokent get_token(RRR((t./modules/yaml/__init__.pytscans
9   ccs/||ƒ}x|iƒo|iƒVqWdS(s9
10 Parse a YAML stream and produce parsing events.
11 N(RRRt check_eventt get_event(RRR((Rtparses
12   cCs+||ƒ}|iƒo|iƒSndS(sj
13 Parse the first YAML document in a stream
14 and produce the corresponding representation tree.
15 N(RRRt
16 check_nodetget_node(RRR((Rtcompose s  ccs/||ƒ}x|iƒo|iƒVqWdS(sb
17 Parse all YAML documents in a stream
18 and produce corresponsing representation trees.
19 N(RRRR R (RRR((Rt compose_all)s
20   ccs/||ƒ}x|iƒo|iƒVqWdS(s\
21 Parse all YAML documents in a stream
22 and produce corresponding Python objects.
23 N(RRRt
24 check_datatget_data(RRR((Rtload_all2s
25   cCs+||ƒ}|iƒo|iƒSndS(sd
26 Parse the first YAML document in a stream
27 and produce the corresponding Python object.
28 N(RRRRR(RRR((Rtload;s  cCs t|tƒS(s~
29 Parse all YAML documents in a stream
30 and produce corresponding Python objects.
31 Resolve only basic YAML tags.
32 N(RRt
33 SafeLoader(R((Rt safe_load_allDscCs t|tƒS(s†
34 Parse the first YAML document in a stream
35 and produce the corresponding Python object.
36 Resolve only basic YAML tags.
37 N(RRR(R((Rt safe_loadLsc Cs»d} |djoJydkl} Wn tj
38 odkl} nX| ƒ}|i} n||d|d|d|d|d|ƒ}
39 x|D]}|
40 i|ƒqŽW| o | ƒSndS(sl
41 Emit YAML parsing events into a stream.
42 If stream is None, return the produced string instead.
43 (sStringIOt canonicaltindenttwidtht allow_unicodet
44 line_breakN(tNonetgetvalueRt cStringIOtStringIOt ImportErrortDumperRRRRRtdumperteventsteventtemit( R"RR RRRRRR#RR!R((RR$Ts    sutf-8c Csíd }|d joJydkl}Wn tj
45 odkl}nX|ƒ}|i}n||d|d|d|d|d|d|d| d | d
46 | d |
47 ƒ
48 }|iƒx|D]} |i| ƒq¶W|iƒ|o |ƒSnd S( s…
49 Serialize a sequence of representation trees into a YAML stream.
50 If stream is None, return the produced string instead.
51 (sStringIORRRRRtencodingtversionttagstexplicit_startt explicit_endN(RRRRRRR RRRRRR%R&R'R(R)R!topentnodestnodet serializetclose(R+RR RRRRRR%R(R)R&R'R,RRR!((Rt serialize_alljs(    
52 
53 cKst|g|d||S(sx
54 Serialize a representation tree into a YAML stream.
55 If stream is None, return the produced string instead.
56 R N(R/R,RR tkwds(R,RR R0((RR-†scCsùd}|djoJydkl}Wn tj
57 odkl}nX|ƒ}|i}n||d|d|d|d|d|d|d| d |
58 d
59 | d |d | d | ƒ }|iƒx|D]}|i|ƒqÂW|iƒ|o |ƒSndS(s
60 Serialize a sequence of Python objects into a YAML stream.
61 If stream is None, return the produced string instead.
62 (sStringIOt default_styletdefault_flow_styleRRRRRR%R&R'R(R)N(RRRRRRR R1R2RRRRRR%R&R'R(R)R!R*t documentstdatat representR.(R3RR R1R2RRRRRR%R(R)R&R'RRR!R4((Rtdump_alls,      
63 
64 cKst|g|d||S(sr
65 Serialize a Python object into a YAML stream.
66 If stream is None, return the produced string instead.
67 R N(R6R4RR R0(R4RR R0((Rtdump¬scKst||dt|S(s¡
68 Serialize a sequence of Python objects into a YAML stream.
69 Produce only basic YAML tags.
70 If stream is None, return the produced string instead.
71 R N(R6R3Rt
72 SafeDumperR0(R3RR0((Rt safe_dump_all³scKst|g|dt|S(s”
73 Serialize a Python object into a YAML stream.
74 Produce only basic YAML tags.
75 If stream is None, return the produced string instead.
76 R N(R6R4RR8R0(R4RR0((Rt safe_dump»scCs*|i|||ƒ|i|||ƒdS(sÙ
77 Add an implicit scalar detector.
78 If an implicit scalar value matches the given regexp,
79 the corresponding tag is assigned to the scalar.
80 first is a sequence of possible initial characters or None.
81 N(Rtadd_implicit_resolverttagtregexptfirstR (R<R=R>RR ((RR;ÃscCs*|i|||ƒ|i|||ƒdS(sÁ
82 Add a path based resolver for the given tag.
83 A path is a list of keys that forms a path
84 to a node in the representation tree.
85 Keys can be string values, integers, or None.
86 N(Rtadd_path_resolverR<tpathtkindR (R<R@RARR ((RR?ÎscCs|i||ƒdS(s¯
87 Add a constructor for the given tag.
88 Constructor is a function that accepts a Loader instance
89 and a node object and produces the corresponding Python object.
90 N(Rtadd_constructorR<t constructor(R<RCR((RRBØscCs|i||ƒdS(s 
91 Add a multi-constructor for the given tag prefix.
92 Multi-constructor is called for a node if its tag starts with tag_prefix.
93 Multi-constructor accepts a Loader instance, a tag suffix,
94 and a node object and produces the corresponding Python object.
95 N(Rtadd_multi_constructort
96 tag_prefixtmulti_constructor(RERFR((RRDàscCs|i||ƒdS(sÍ
97 Add a representer for the given type.
98 Representer is a function accepting a Dumper instance
99 and an instance of the given data type
100 and producing the corresponding representation node.
101 N(R tadd_representert data_typet representer(RHRIR ((RRGéscCs|i||ƒdS(sÞ
102 Add a representer for the given type.
103 Multi-representer is a function accepting a Dumper instance
104 and an instance of the given data type or subtype
105 and producing the corresponding representation node.
106 N(R tadd_multi_representerRHtmulti_representer(RHRKR ((RRJòstYAMLObjectMetaclasscBstZdZd„ZRS(s'
107 The metaclass for YAMLObject.
108 cCsqtt|ƒi|||ƒd|joD|ddj o3|ii |i
109 |i ƒ|i i ||iƒndS(Ntyaml_tag(tsuperRLtclst__init__tnametbasesR0Rt yaml_loaderRBRMt from_yamlt yaml_dumperRGtto_yaml(RORQRRR0((RRPÿs(t__name__t
110 __module__t__doc__RP(((RRLûs t
111 YAMLObjectcBs\tZdZeZfZeZeZ e
112 Z e
113 Z d„Z ee ƒZ d„ZeeƒZRS(sa
114 An object that can dump itself to a YAML stream
115 and load itself from a YAML stream.
116 cCs|i||ƒS(sC
117 Convert a representation node to a Python object.
118 N(Rtconstruct_yaml_objectR,RO(RORR,((RRTscCs|i|i||d|iƒS(sC
119 Convert a Python object to a representation node.
120 t
121 flow_styleN(R!trepresent_yaml_objectRORMR4tyaml_flow_style(ROR!R4((RRVs(RWRXRYRLt __metaclass__t __slots__RRSR RURRMR^RTt classmethodRV(((RRZs    N($terrorttokensR"R+RR!tcyamlRRRR
122 R RRRRRRR R$R/R-R6R7R9R:R;R?RBRDRGRJttypeRLtobjectRZ(RR7RR-R
123 RLRDRR;R RGRRZRBR?R9RJRRR6R/R$R:((Rt?s@     -3   
124  

Properties

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

Managed by UCC Webmasters ViewVC Help
Powered by ViewVC 1.1.26