/usr/lib/python2.6/site-packages/jsonschema
NameSizeModeActions
schemas/-0755rm
tests/-0755rm
cli.py20140644editdlrm
cli.pyc28450644editdlrm
compat.py15530644editdlrm
compat.pyc19680644editdlrm
exceptions.py69730644editdlrm
exceptions.pyc109020644editdlrm
validators.py159210644editdlrm
validators.pyc163410644editdlrm
_format.py68810644editdlrm
_format.pyc90350644editdlrm
_reflect.py50230644editdlrm
_reflect.pyc55270644editdlrm
_utils.py49810644editdlrm
_utils.pyc84160644editdlrm
_validators.py117900644editdlrm
_validators.pyc129600644editdlrm
_version.py1220644editdlrm
_version.pyc2320644editdlrm
__init__.py6790644editdlrm
__init__.pyc10210644editdlrm
__main__.py390644editdlrm
__main__.pyc2100644editdlrm
Edit: /usr/lib/python2.6/site-packages/jsonschema/_validators.pyc (12960B)
Ñò DVc@sTddkZddklZddklZlZddklZd„Zd„Z d„Z d„Z d „Z d „Z d „Zd „Zd „Zd„Zd„Zd„Zd„Zd„Zd„Zd„Zd„Zd„Zd„Zd„Zd„Zd„Zd„Zd„Zd„Z d„Z!d„Z"d „Z#d!„Z$d"„Z%dS(#iÿÿÿÿN(t_utils(t FormatErrortValidationError(t iteritemsc cs›|i|dƒpdSx|t|ƒD]n\}}x_t|ƒD]Q\}}ti||ƒo2x/|i||d|d|ƒD] }|Vq|Wq>q>Wq%WdS(Ntobjecttpatht schema_path(tis_typeRtretsearchtdescend( t validatortpatternPropertiestinstancetschematpatternt subschematktvterror((s:/tmp/pip-build-lt8jXN/jsonschema/jsonschema/_validators.pyR s   ccs¹|i|dƒpdStti||ƒƒ}|i|dƒoAxo|D]2}x)|i|||d|ƒD] }|VqmWqJWn2| o)|o"d}t|ti|ƒƒVndS(NRRs8Additional properties are not allowed (%s %s unexpected)(RtsetRtfind_additional_propertiesR Rt extras_msg(R taPR RtextrastextraR((s:/tmp/pip-build-lt8jXN/jsonschema/jsonschema/_validators.pytadditionalPropertiessccsÒ|i|dƒpdS|i|dƒoIx t|ƒD]4\}}x%|i||d|ƒD] }|Vq]Wq8Wn[xWtt|ƒ|ƒD]@\\}}}x+|i||d|d|ƒD] }|Vq»WqŠWdS(NtarrayRRR(Rt enumerateR tzip(R titemsR RtindextitemRR((s:/tmp/pip-build-lt8jXN/jsonschema/jsonschema/_validators.pyR$s  ccs|i|dƒ p|i|idhƒdƒodSt|idgƒƒ}|i|dƒoSxµt||d|ƒD]4\}}x%|i||d|ƒD] }|VqŸWqzWnf| o]t|ƒt|idgƒƒjo8d}t|ti|t|idgƒƒƒƒVndS(NRRRtstartRs3Additional items are not allowed (%s %s unexpected)(RtgettlenRR RRR(R taIR Rt len_itemsRR R((s:/tmp/pip-build-lt8jXN/jsonschema/jsonschema/_validators.pytadditionalItems4s -ccsz|i|dƒpdS|idtƒo||j}d}n||j}d}|otd|||fƒVndS(NtnumbertexclusiveMinimumsless than or equal tos less thans%r is %s the minimum of %r(RR"tFalseR(R tminimumR Rtfailedtcmp((s:/tmp/pip-build-lt8jXN/jsonschema/jsonschema/_validators.pyR*Hs   ccsz|i|dƒpdS|idtƒo||j}d}n||j}d}|otd|||fƒVndS(NR'texclusiveMaximumsgreater than or equal tos greater thans%r is %s the maximum of %r(RR"R)R(R tmaximumR RR+R,((s:/tmp/pip-build-lt8jXN/jsonschema/jsonschema/_validators.pyR.Ys   ccsv|i|dƒpdSt|tƒo ||}t|ƒ|j}n ||}|otd||fƒVndS(NR's%r is not a multiple of %r(Rt isinstancetfloattintR(R tdBR RtquotientR+((s:/tmp/pip-build-lt8jXN/jsonschema/jsonschema/_validators.pyt multipleOfjs  ccs@|i|dƒo)t|ƒ|jotd|fƒVndS(NRs%r is too short(RR#R(R tmIR R((s:/tmp/pip-build-lt8jXN/jsonschema/jsonschema/_validators.pytminItemsxs&ccs@|i|dƒo)t|ƒ|jotd|fƒVndS(NRs%r is too long(RR#R(R R5R R((s:/tmp/pip-build-lt8jXN/jsonschema/jsonschema/_validators.pytmaxItems}s&ccsB|o7|i|dƒo$ti|ƒ otd|ƒVndS(NRs%r has non-unique elements(RRtuniqR(R tuIR R((s:/tmp/pip-build-lt8jXN/jsonschema/jsonschema/_validators.pyt uniqueItems‚sccsD|i|dƒo-ti||ƒ otd||fƒVndS(Ntstrings%r does not match %r(RRR R(R tpatrnR R((s:/tmp/pip-build-lt8jXN/jsonschema/jsonschema/_validators.pyR‹sccs^|idj oJy|ii||ƒWqZtj o }t|id|iƒVqZXndS(Ntcause(tformat_checkertNonetcheckRRtmessageR=(R tformatR RR((s:/tmp/pip-build-lt8jXN/jsonschema/jsonschema/_validators.pyRB“s ccs@|i|dƒo)t|ƒ|jotd|fƒVndS(NR;s%r is too short(RR#R(R tmLR R((s:/tmp/pip-build-lt8jXN/jsonschema/jsonschema/_validators.pyt minLength›s&ccs@|i|dƒo)t|ƒ|jotd|fƒVndS(NR;s%r is too long(RR#R(R RCR R((s:/tmp/pip-build-lt8jXN/jsonschema/jsonschema/_validators.pyt maxLength s&ccsÒ|i|dƒpdSx³t|ƒD]¥\}}||joq%n|i|dƒo,xo|i||d|ƒD] }|VqqWq%ti|ƒ}x4|D],}||jotd||fƒVqšqšWq%WdS(NRRs%r is a dependency of %r(RRR Rt ensure_listR(R t dependenciesR Rtpropertyt dependencyR((s:/tmp/pip-build-lt8jXN/jsonschema/jsonschema/_validators.pyRG¥s"     ccs*||jotd||fƒVndS(Ns%r is not one of %r(R(R tenumsR R((s:/tmp/pip-build-lt8jXN/jsonschema/jsonschema/_validators.pytenum»s c csÚt|iddƒ}|djoU|ii|ƒiiƒ}z/|~}x|i||ƒD] }|Vq^WWdQXn`|ii|ƒ\}}|ii|ƒz&x|i||ƒD] }|VqµWWd|ii ƒXdS(Ntresolve( tgetattrtresolverR?t resolvingt__exit__t __enter__R RLt push_scopet pop_scope( R trefR RRLt_[1]tresolvedRtscope((s:/tmp/pip-build-lt8jXN/jsonschema/jsonschema/_validators.pyRTÀs ) ccsËti|ƒ}g}x¯t|ƒD]„\}}|djodS|i|dƒo;t|i||d|ƒƒ}|pdS|i|ƒq"|i||ƒodSq"Wtti||ƒd|ƒVdS(NtanyRRtcontext( RRFRRtlistR textendRt types_msg(R ttypesR Rt all_errorsRttypeterrors((s:/tmp/pip-build-lt8jXN/jsonschema/jsonschema/_validators.pyt type_draft3Ñs   c csô|i|dƒpdSxÕt|ƒD]Ç\}}||jo6x«|i|||d|d|ƒD] }|VqaWq%|idtƒoetd|ƒ}|iddd|dd|d |ƒ|ii|ƒ|i i |dgƒ|Vq%q%WdS( NRRRtrequireds%r is a required propertyR tvalidator_valueR R( RRR R"R)Rt_setRt appendleftRR[(R t propertiesR RRHRR((s:/tmp/pip-build-lt8jXN/jsonschema/jsonschema/_validators.pytproperties_draft3æs,      ccsTxMti|ƒD]<}|i|h|gd6ƒotd||fƒVqqWdS(NR_s%r is disallowed for %r(RRFtis_validR(R tdisallowR Rt disallowed((s:/tmp/pip-build-lt8jXN/jsonschema/jsonschema/_validators.pytdisallow_draft3s ccsƒ|i|dƒo'x|i||ƒD] }|Vq&WdSxBt|ƒD]4\}}x%|i||d|ƒD] }|VqlWqGWdS(NRR(RR R(R textendsR RRRR((s:/tmp/pip-build-lt8jXN/jsonschema/jsonschema/_validators.pytextends_draft3s  c#sNti|ƒ}t‡‡fd†|Dƒƒpttiˆ|ƒƒVndS(Nc3s%x|]}ˆiˆ|ƒVqWdS(N(R(t.0R_(R R (s:/tmp/pip-build-lt8jXN/jsonschema/jsonschema/_validators.pys s (RRFRXRR\(R R]R R((R R s:/tmp/pip-build-lt8jXN/jsonschema/jsonschema/_validators.pyt type_draft4s ccs||i|dƒpdSx]t|ƒD]O\}}||jo6x3|i|||d|d|ƒD] }|VqaWq%q%WdS(NRRR(RRR (R RfR RRHRR((s:/tmp/pip-build-lt8jXN/jsonschema/jsonschema/_validators.pytproperties_draft4s   ccsM|i|dƒpdSx.|D]&}||jotd|ƒVqqWdS(NRs%r is a required property(RR(R RbR RRH((s:/tmp/pip-build-lt8jXN/jsonschema/jsonschema/_validators.pytrequired_draft4(s  ccs@|i|dƒo)t|ƒ|jotd|fƒVndS(NRs"%r does not have enough properties(RR#R(R tmPR R((s:/tmp/pip-build-lt8jXN/jsonschema/jsonschema/_validators.pytminProperties_draft40s&ccsX|i|dƒpdS|i|dƒo)t|ƒ|jotd|fƒVndS(NRs%r has too many properties(RR#R(R RrR R((s:/tmp/pip-build-lt8jXN/jsonschema/jsonschema/_validators.pytmaxProperties_draft47s&ccsIxBt|ƒD]4\}}x%|i||d|ƒD] }|Vq2Wq WdS(NR(RR (R tallOfR RRRR((s:/tmp/pip-build-lt8jXN/jsonschema/jsonschema/_validators.pyt allOf_draft4>s  ccst|ƒ}g}xi|D]I\}}t|i||d|ƒƒ}|p |} Pn|i|ƒqWtd|fd|ƒVg} |D]*\} } |i|| ƒo | | q‰q‰~ } | o?| i| ƒdid„| Dƒƒ}td||fƒVndS(NRs.%r is not valid under any of the given schemasRYs, cssx|]}t|ƒVqWdS(N(trepr(RnR((s:/tmp/pip-build-lt8jXN/jsonschema/jsonschema/_validators.pys Vs s%r is valid under each of %s(RRZR R[RRhtappendtjoin(R toneOfR Rt subschemasR^RRterrst first_validRUtitst more_validtreprs((s:/tmp/pip-build-lt8jXN/jsonschema/jsonschema/_validators.pyt oneOf_draft4Ds$   > ccsvg}xit|ƒD]C\}}t|i||d|ƒƒ}|pPn|i|ƒqWtd|fd|ƒVdS(NRs.%r is not valid under any of the given schemasRY(RRZR R[R(R tanyOfR RR^RRR|((s:/tmp/pip-build-lt8jXN/jsonschema/jsonschema/_validators.pyt anyOf_draft4\s  ccs0|i||ƒotd||fƒVndS(Ns%r is not allowed for %r(RhR(R t not_schemaR R((s:/tmp/pip-build-lt8jXN/jsonschema/jsonschema/_validators.pyt not_draft4js(&Rt jsonschemaRtjsonschema.exceptionsRRtjsonschema.compatRR RRR&R*R.R4R6R7R:RRBRDRERGRKRTRaRgRkRmRoRpRqRsRtRvR‚R„R†(((s:/tmp/pip-build-lt8jXN/jsonschema/jsonschema/_validators.pytsB