tzh
2024-08-22 c7d0944258c7d0943aa7b2211498fd612971ce27
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
K\¬Qc@s}dZddlZddlmZdd d„ƒYZeeƒƒZd„Zdefd„ƒYZ    d    efd
„ƒYZ
dS( s3Abstract Base Classes (ABCs) according to PEP 3119.iÿÿÿÿN(tWeakSett_CcBseZRS((t__name__t
__module__(((sK/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/abc.pyR scCs t|_|S(sïA decorator indicating abstract methods.
 
    Requires that the metaclass is ABCMeta or derived from it.  A
    class that has a metaclass derived from ABCMeta cannot be
    instantiated unless all of its abstract methods are overridden.
    The abstract methods can be called using any of the normal
    'super' call mechanisms.
 
    Usage:
 
        class C:
            __metaclass__ = ABCMeta
            @abstractmethod
            def my_abstract_method(self, ...):
                ...
    (tTruet__isabstractmethod__(tfuncobj((sK/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/abc.pytabstractmethods    tabstractpropertycBseZdZeZRS(s/A decorator indicating abstract properties.
 
    Requires that the metaclass is ABCMeta or derived from it.  A
    class that has a metaclass derived from ABCMeta cannot be
    instantiated unless all of its abstract properties are overridden.
    The abstract properties can be called using any of the normal
    'super' call mechanisms.
 
    Usage:
 
        class C:
            __metaclass__ = ABCMeta
            @abstractproperty
            def my_abstract_property(self):
                ...
 
    This defines a read-only property; you can also define a read-write
    abstract property using the 'long' form of property declaration:
 
        class C:
            __metaclass__ = ABCMeta
            def getx(self): ...
            def setx(self, value): ...
            x = abstractproperty(getx, setx)
    (RRt__doc__RR(((sK/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/abc.pyR$stABCMetacBsDeZdZdZd„Zd„Zdd„Zd„Zd„Z    RS(siMetaclass for defining Abstract Base Classes (ABCs).
 
    Use this metaclass to create an ABC.  An ABC can be subclassed
    directly, and then acts as a mix-in class.  You can also register
    unrelated concrete classes (even built-in classes) and unrelated
    ABCs as 'virtual subclasses' -- these and their descendants will
    be considered subclasses of the registering ABC by the built-in
    issubclass() function, but the registering ABC won't show up in
    their MRO (Method Resolution Order) nor will method
    implementations defined by the registering ABC be callable (not
    even via super()).
 
    icCsått|ƒj||||ƒ}td„|jƒDƒƒ}xb|D]Z}xQt|dtƒƒD]:}t||dƒ}t|dtƒr`|j|ƒq`q`WqDWt    |ƒ|_
t ƒ|_ t ƒ|_ t ƒ|_tj|_|S(Ncss-|]#\}}t|dtƒr|VqdS(RN(tgetattrtFalse(t.0tnametvalue((sK/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/abc.pys    <genexpr>Ys    t__abstractmethods__R(tsuperR
t__new__tsettitemsR tNoneR taddt    frozensetRRt _abc_registryt
_abc_cachet_abc_negative_cachet_abc_invalidation_countert_abc_negative_cache_version(tmclsRtbasest    namespacetclst    abstractstbaseR((sK/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/abc.pyRVs!         cCs{t|ttjfƒs'tdƒ‚nt||ƒr:dSt||ƒrXtdƒ‚n|jj|ƒt    j
d7_
dS(s&Register a virtual subclass of an ABC.sCan only register classesNs'Refusing to create an inheritance cyclei( t
isinstancettypettypest    ClassTypet    TypeErrort
issubclasst RuntimeErrorRRR
R(R tsubclass((sK/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/abc.pytregisteriscCs„|d|j|jfIJ|dtjIJxRt|jjƒƒD];}|jdƒrAt||ƒ}|d||fIJqAqAWdS(s'Debug helper to print the ABC registry.s Class: %s.%ssInv.counter: %st_abc_s%s: %rN(    RRR
Rtsortedt__dict__tkeyst
startswithR (R tfileRR((sK/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/abc.pyt_dump_registryws cCs¸t|ddƒ}|dk    r1||jkr1tSt|ƒ}|tkrR|}n||ksj|dkrœ|jtjkr||j    krt
S|j |ƒS|j |ƒp·|j |ƒS(s'Override for isinstance(instance, cls).t    __class__N( R RRRR$t _InstanceTypeRR
RRR t__subclasscheck__(R tinstanceR*tsubtype((sK/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/abc.pyt__instancecheck__€s        cCsa||jkrtS|jtjkr@tƒ|_tj|_n||jkrStS|j|ƒ}|t    k    r°t
|t ƒsƒt ‚|rœ|jj |ƒn|jj |ƒ|S|t|ddƒkrÜ|jj |ƒtSx4|jD])}t||ƒræ|jj |ƒtSqæWx7|jƒD])}t||ƒr |jj |ƒtSq W|jj |ƒtS(s'Override for issubclass(subclass, cls).t__mro__((RRRR
RRRR t__subclasshook__tNotImplementedR#tbooltAssertionErrorRR RR(t__subclasses__(R R*toktrclstscls((sK/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/abc.pyR5”s6  N(
RRR    RRR+RR2R8R5(((sK/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/abc.pyR
As                (( R    R%t _weakrefsetRRR$R4RtpropertyRR
(((sK/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/abc.pyt<module>s