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


UCC Code Repository

Contents of /bunnyblog/modules/yaml/resolver.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: 6345 byte(s)
Re-import of repository after repository database corruption.

1
2 ïÞEc@s—ddgZdkTdkTdkZdefd„ƒYZdefd„ƒYZdefd„ƒYZei dei
3 d ei ƒe d
4 ƒƒei d ei
5 d ei ƒe d ƒƒei dei
6 dei ƒe dƒƒei dei
7 dƒdgƒei dei
8 dei ƒddddgƒei dei
9 dei ƒe dƒƒei dei
10 dƒdgƒei d ei
11 d!ƒe d"ƒƒdS(#t BaseResolvertResolver(t*Nt ResolverErrorcBstZRS(N(t__name__t
12 __module__(((t./modules/yaml/resolver.pyR scBs€tZdZdZdZhZhZd„Zd„Ze eƒZdd„Z e e ƒZ d„Z d„Z d „Zd
13 „ZRS( Nutag:yaml.org,2002:strutag:yaml.org,2002:sequtag:yaml.org,2002:mapcCsg|_g|_dS(N(tselftresolver_exact_pathstresolver_prefix_paths(R((Rt__init__s cCswd|ijo|iiƒ|_n|djo dg}nx0|D](}|ii|gƒi||fƒqGWdS(Ntyaml_implicit_resolvers( tclst__dict__R tcopytfirsttNonetcht
14 setdefaulttappendttagtregexp(R RRRR((Rtadd_implicit_resolvers  cCs.d|ijo|iiƒ|_ng}xf|D]^}t|tt fƒo^t
15 |ƒdjo|\}}q¹t
16 |ƒdjo|d}t }q¹td|ƒ‚n d}|}|tjo
17 t}nw|tjo
18 t}n`|tjo
19 t}nI|tttgjo2t|tƒ o!|dj otd|ƒ‚nt|ttfƒ o!|dj otd|ƒ‚n|i||fƒq3W|tjo
20 t}nf|tjo
21 t}nO|tjo
22 t}n8|tttgjo!|dj otd|ƒ‚n||it |ƒ|f<dS( Ntyaml_path_resolversiiisInvalid path element: %ssInvalid node checker: %ssInvalid index checker: %ssInvalid node kind: %s(R R RRtnew_pathtpathtelementt
23 isinstancetlistttupletlent
24 node_checkt index_checktTrueRRtstrt
25 ScalarNodet SequenceNodetdictt MappingNodet
26 basestringtintRtkindR(R RRR)RRRR ((Rtadd_path_resolver"sD 
27 
28  
29  
30  
31 4$ 
32  
33  
34 #cCs*|ipdSnh}g}|o’t|iƒ}xÏ|idD]m\}}|i
35 |||||ƒoEt|ƒ|jo|i ||fƒq¯|i||f||<qBqBWnPxL|iD]A\}}|p|i||f||<qÁ|i ||fƒqÁW|i i |ƒ|ii |ƒdS(Niÿÿÿÿ(RRt exact_pathst prefix_pathst current_nodeRR tdepthRR)tcheck_resolver_prefixt current_indexRR(RR-R0R)R.R+RR,((Rtdescend_resolverXs(
36   #
37 cCs0|ipdSn|iiƒ|iiƒdS(N(RRRtpopR (R((Rtascend_resolveros
38  cCs4||d\}}t|tƒo|i|jodSqin*|dj ot||ƒpdSqin|t jo|dj odSn|t jp |djo|djodSnt|tƒo,t|t ƒo ||i jpdSq0n;t|tƒo*t|tƒ o||jodSq0nt S(Ni(RR.RR RR'R-RRR!R0tFalseR#tvalueR(tbool(RR.RR)R-R0RR ((RR/us$   '  !  cCsF|tjo |do•|djo|iidgƒ}n|ii|dgƒ}||iidgƒ7}x,|D]$\}}|i |ƒo|SqwqwW|d}n|i oC|i d}||jo ||Snd|jo |dSqún|tjo |iSn1|tjo |iSn|tjo |iSndS(Niuiiÿÿÿÿ(R)R#timplicitR5RR tgett resolversRRRtmatchRRR+tDEFAULT_SCALAR_TAGR$tDEFAULT_SEQUENCE_TAGR&tDEFAULT_MAPPING_TAG(RR)R5R7R9R+RR((RtresolveŒs,   
39          (RRR;R<R=R RR
40 Rt classmethodRR*R1R3R/R>(((RR s    4    cBstZRS(N(RR(((RR¤sutag:yaml.org,2002:booluz^(?:yes|Yes|YES|no|No|NO
41 |true|True|TRUE|false|False|FALSE
42 |on|On|ON|off|Off|OFF)$u
43 yYnNtTfFoOutag:yaml.org,2002:floatuÌ^(?:[-+]?(?:[0-9][0-9_]*)?\.[0-9_]*(?:[eE][-+][0-9]+)?
44 |[-+]?[0-9][0-9_]*(?::[0-5]?[0-9])+\.[0-9_]*
45 |[-+]?\.(?:inf|Inf|INF)
46 |\.(?:nan|NaN|NAN))$u -+0123456789.utag:yaml.org,2002:intuÆ^(?:[-+]?0b[0-1_]+
47 |[-+]?0[0-7_]+
48 |[-+]?(?:0|[1-9][0-9_]*)
49 |[-+]?0x[0-9a-fA-F_]+
50 |[-+]?[1-9][0-9_]*(?::[0-5]?[0-9])+)$u -+0123456789utag:yaml.org,2002:mergeu^(?:<<)$t<utag:yaml.org,2002:nulluC^(?: ~
51 |null|Null|NULL
52 | )$u~unuNuutag:yaml.org,2002:timestampu%^(?:[0-9][0-9][0-9][0-9]-[0-9][0-9]-[0-9][0-9]
53 |[0-9][0-9][0-9][0-9] -[0-9][0-9]? -[0-9][0-9]?
54 (?:[Tt]|[ \t]+)[0-9][0-9]?
55 :[0-9][0-9] :[0-9][0-9] (?:\.[0-9]*)?
56 (?:[ \t]*(?:Z|[-+][0-9][0-9]?(?::[0-9][0-9])?))?)$u
57 0123456789utag:yaml.org,2002:valueu^(?:=)$t=utag:yaml.org,2002:yamlu ^(?:!|&|\*)$u!&*( t__all__terrortnodestret YAMLErrorRtobjectRRRtcompiletXR(RBRRRER((Rt?s<  ˜        
58      
59   

Properties

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

Managed by UCC Webmasters ViewVC Help
Powered by ViewVC 1.1.26