Why Gemfury? Push, build, and install  RubyGems npm packages Python packages Maven artifacts PHP packages Go Modules Debian packages RPM packages NuGet packages

Repository URL to install this package:

Details    
Size: Mime:
ó
³‹EYc@såddlZddlZddlZddlZddlmZmZmZdefd„ƒYZde	fd„ƒYZ
d„Zdd	„Zd
„Z
d„Zd„Zd
„Zd„Zd„Ze	ƒe	ƒd„Zd„ZdS(iÿÿÿÿN(t	str_typestMutableMappingturlsplittURIDictcBsVeZdZd„Zd„Zd„Zd„Zd„Zd„Zd„Z	d„Z
RS(	s9
    Dictionary which uses normalized URIs as keys.

    cCst|ƒjƒS(N(Rtgeturl(tselfturi((sF/home/tvault/.virtenv/lib/python2.7/site-packages/jsonschema/_utils.pyt	normalizescOs#tƒ|_|jj||ŽdS(N(tdicttstoretupdate(Rtargstkwargs((sF/home/tvault/.virtenv/lib/python2.7/site-packages/jsonschema/_utils.pyt__init__scCs|j|j|ƒS(N(R	R(RR((sF/home/tvault/.virtenv/lib/python2.7/site-packages/jsonschema/_utils.pyt__getitem__scCs||j|j|ƒ<dS(N(R	R(RRtvalue((sF/home/tvault/.virtenv/lib/python2.7/site-packages/jsonschema/_utils.pyt__setitem__scCs|j|j|ƒ=dS(N(R	R(RR((sF/home/tvault/.virtenv/lib/python2.7/site-packages/jsonschema/_utils.pyt__delitem__scCs
t|jƒS(N(titerR	(R((sF/home/tvault/.virtenv/lib/python2.7/site-packages/jsonschema/_utils.pyt__iter__scCs
t|jƒS(N(tlenR	(R((sF/home/tvault/.virtenv/lib/python2.7/site-packages/jsonschema/_utils.pyt__len__"scCs
t|jƒS(N(treprR	(R((sF/home/tvault/.virtenv/lib/python2.7/site-packages/jsonschema/_utils.pyt__repr__%s(t__name__t
__module__t__doc__RR
RRRRRR(((sF/home/tvault/.virtenv/lib/python2.7/site-packages/jsonschema/_utils.pyR	s							tUnsetcBseZdZd„ZRS(sH
    An as-of-yet unset attribute or unprovided default parameter.

    cCsdS(Ns<unset>((R((sF/home/tvault/.virtenv/lib/python2.7/site-packages/jsonschema/_utils.pyR/s(RRRR(((sF/home/tvault/.virtenv/lib/python2.7/site-packages/jsonschema/_utils.pyR)scCs1tjddj|ƒƒ}tj|jdƒƒS(sD
    Load a schema from ./schemas/``name``.json and return it.

    t
jsonschemasschemas/{0}.jsonsutf-8(tpkgutiltget_datatformattjsontloadstdecode(tnametdata((sF/home/tvault/.virtenv/lib/python2.7/site-packages/jsonschema/_utils.pytload_schema3sics#dj‡fd†|jƒDƒƒS(sE
    A dumb version of :func:`textwrap.indent` from Python 3.3.

    s
c3s!|]}ddˆ|VqdS(t iN((t.0tline(ttimes(sF/home/tvault/.virtenv/lib/python2.7/site-packages/jsonschema/_utils.pys	<genexpr>Cs(tjoint
splitlines(tstringR)((R)sF/home/tvault/.virtenv/lib/python2.7/site-packages/jsonschema/_utils.pytindent=scCs%|s
dSddjd„|DƒƒS(sÖ
    Construct a single string containing indexing operations for the indices.

    For example, [1, 2, "foo"] -> [1][2]["foo"]

    Arguments:

        indices (sequence):

            The indices to format.

    ts[%s]s][css|]}t|ƒVqdS(N(R(R'tindex((sF/home/tvault/.virtenv/lib/python2.7/site-packages/jsonschema/_utils.pys	<genexpr>Vs(R*(tindices((sF/home/tvault/.virtenv/lib/python2.7/site-packages/jsonschema/_utils.pytformat_as_indexFsccst|jdiƒ}dj|jdiƒƒ}x@|D]8}||kr4|rdtj||ƒrdq4n|Vq4q4WdS(sî
    Return the set of additional properties for the given ``instance``.

    Weeds out properties that should have been validated by ``properties`` and
    / or ``patternProperties``.

    Assumes ``instance`` is dict-like already.

    t
propertiest|tpatternPropertiesN(tgetR*tretsearch(tinstancetschemaR2tpatternstproperty((sF/home/tvault/.virtenv/lib/python2.7/site-packages/jsonschema/_utils.pytfind_additional_propertiesYs
cCs>t|ƒdkrd}nd}djd„|Dƒƒ|fS(sA
    Create an error message for extra items or properties.

    itwastweres, css|]}t|ƒVqdS(N(R(R'textra((sF/home/tvault/.virtenv/lib/python2.7/site-packages/jsonschema/_utils.pys	<genexpr>ws(RR*(textrastverb((sF/home/tvault/.virtenv/lib/python2.7/site-packages/jsonschema/_utils.pyt
extras_msgms	cCspg}xP|D]H}y|jt|dƒƒWq
tk
rT|jt|ƒƒq
Xq
Wd|dj|ƒfS(s,
    Create an error message for a failure to match the given types.

    If the ``instance`` is an object and contains a ``name`` property, it will
    be considered to be a description of that object and used as its type.

    Otherwise the message is simply the reprs of the given ``types``.

    R#s%r is not of type %ss, (tappendRt	ExceptionR*(R8ttypestreprsttype((sF/home/tvault/.virtenv/lib/python2.7/site-packages/jsonschema/_utils.pyt	types_msgzs

cCsqtƒ}t|tƒs$|f}nx@|D]8}t|tƒrV|jt|ƒƒq+|j|ƒq+Wt|ƒS(sã
    isinstance() can accept a bunch of really annoying different types:
        * a single type
        * a tuple of types
        * an arbitrary nested tree of tuples

    Return a flattened tuple of the given argument.

    (tsett
isinstancettupleR
tflattentadd(tsuitable_for_isinstanceREtthing((sF/home/tvault/.virtenv/lib/python2.7/site-packages/jsonschema/_utils.pyRLŽs	
cCst|tƒr|gS|S(s^
    Wrap ``thing`` in a list if it's a single str.

    Otherwise, return it unchanged.

    (RJR(RO((sF/home/tvault/.virtenv/lib/python2.7/site-packages/jsonschema/_utils.pytensure_list¥scCs$|tkr|S|tkr |S|S(sI
    A hack to make True and 1 and False and 0 unique for ``uniq``.

    (tTruetFalse(telementttruetfalse((sF/home/tvault/.virtenv/lib/python2.7/site-packages/jsonschema/_utils.pytunbool²s
cCsûy*ttd„|Dƒƒƒt|ƒkSWnÊtk
röy_td„|Dƒƒ}tj|ddƒ}x-t||ƒD]\}}||krxtSqxWWq÷t	tfk
ròg}x;|D]/}t
|ƒ}||krÞtS|j|ƒq¼Wq÷XnXtS(sÚ
    Check if all of a container's elements are unique.

    Successively tries first to rely that the elements are hashable, then
    falls back on them being sortable, and finally falls back on brute
    force.

    css|]}t|ƒVqdS(N(RV(R'ti((sF/home/tvault/.virtenv/lib/python2.7/site-packages/jsonschema/_utils.pys	<genexpr>Êscss|]}t|ƒVqdS(N(RV(R'RW((sF/home/tvault/.virtenv/lib/python2.7/site-packages/jsonschema/_utils.pys	<genexpr>ÍsiN(
RRIt	TypeErrortsortedt	itertoolstislicetNonetzipRRtNotImplementedErrorRVRCRQ(t	containertsorttslicedRWtjtseente((sF/home/tvault/.virtenv/lib/python2.7/site-packages/jsonschema/_utils.pytuniq¿s"
*

(RZR RR6tjsonschema.compatRRRRtobjectRR%R-R1R<RBRHRLRPRVRe(((sF/home/tvault/.virtenv/lib/python2.7/site-packages/jsonschema/_utils.pyt<module>s