shell bypass 403
l
��bc @ so d Z d d l m Z d � Z Gd � d e � Z Gd � d e � Z Gd � d e � Z Gd
� d e
� Z d S(
u3 Abstract Base Classes (ABCs) according to PEP 3119.i ( u WeakSetc C s
d | _ | S( u� 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, ...):
...
T( u Trueu __isabstractmethod__( u funcobj( ( u* /usr/local/python-3.2/lib/python3.2/abc.pyu abstractmethod s c s) | Ee Z d Z d Z � f d � Z � S( u� A decorator indicating abstract classmethods.
Similar to abstractmethod.
Usage:
class C(metaclass=ABCMeta):
@abstractclassmethod
def my_abstract_classmethod(cls, ...):
...
c s d | _ t � j | � d S( NT( u Trueu __isabstractmethod__u superu __init__( u selfu callable( u __class__( u* /usr/local/python-3.2/lib/python3.2/abc.pyu __init__+ s T( u __name__u
__module__u __doc__u Trueu __isabstractmethod__u __init__( u
__locals__( ( u __class__u* /usr/local/python-3.2/lib/python3.2/abc.pyu abstractclassmethod s
u abstractclassmethodc s) | Ee Z d Z d Z � f d � Z � S( u� A decorator indicating abstract staticmethods.
Similar to abstractmethod.
Usage:
class C(metaclass=ABCMeta):
@abstractstaticmethod
def my_abstract_staticmethod(...):
...
c s d | _ t � j | � d S( NT( u Trueu __isabstractmethod__u superu __init__( u selfu callable( u __class__( u* /usr/local/python-3.2/lib/python3.2/abc.pyu __init__? s T( u __name__u
__module__u __doc__u Trueu __isabstractmethod__u __init__( u
__locals__( ( u __class__u* /usr/local/python-3.2/lib/python3.2/abc.pyu abstractstaticmethod0 s
u abstractstaticmethodc B s | Ee Z d Z d Z d S( u
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)
NT( u __name__u
__module__u __doc__u Trueu __isabstractmethod__( u
__locals__( ( u* /usr/local/python-3.2/lib/python3.2/abc.pyu abstractpropertyD s
u abstractpropertyc sP | Ee Z d Z d Z � f d � Z d � Z d d � Z d � Z d � Z � S( ui Metaclass 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()).
i c s� t � j | | | | � } d � | j � D� } xb | D]Z } xQ t | d t � � D]: } t | | d � } t | d d � rT | j | � qT qT Wq8 Wt | � | _ t
� | _ t
� | _ t
� | _
t j | _ | S( Nc S s. h | ]$ \ } } t | d d � r | � q S( u __isabstractmethod__F( u getattru False( u .0u nameu value( ( u* /usr/local/python-3.2/lib/python3.2/abc.pyu <setcomp>w s u __abstractmethods__u __isabstractmethod__F( u superu __new__u itemsu getattru setu Noneu Falseu addu frozensetu __abstractmethods__u WeakSetu
_abc_registryu
_abc_cacheu _abc_negative_cacheu ABCMetau _abc_invalidation_counteru _abc_negative_cache_version( u mclsu nameu basesu namespaceu clsu abstractsu baseu value( u __class__( u* /usr/local/python-3.2/lib/python3.2/abc.pyu __new__t s
c C sr t | t � s t d � � n t | | � r1 d St | | � rO t d � � n | j j | � t j d 7_ d S( u&