| Server IP : 156.238.232.47 / Your IP : 216.73.216.150 Web Server : nginx/1.25.3 System : Linux C202504152095410 3.10.0-1160.119.1.el7.x86_64 #1 SMP Tue Jun 4 14:43:51 UTC 2024 x86_64 User : www ( 1000) PHP Version : 8.3.25 Disable Function : passthru,exec,system,putenv,chroot,chgrp,chown,shell_exec,popen,proc_open,pcntl_exec,ini_alter,ini_restore,dl,openlog,syslog,readlink,symlink,popepassthru,pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wifcontinued,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,imap_open,apache_setenv MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : ON | Pkexec : ON Directory : /lib64/python2.7/ |
Upload File : |
�
ٜSec @ s} d Z d d l Z d d l m Z d d d � � YZ e e � � Z d � Z d e f d � � YZ d e f d
� � YZ
d S( s3 Abstract Base Classes (ABCs) according to PEP 3119.i����N( t WeakSett _Cc B s e Z RS( ( t __name__t
__module__( ( ( s /usr/lib64/python2.7/abc.pyR s c C s
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, ...):
...
( t Truet __isabstractmethod__( t funcobj( ( s /usr/lib64/python2.7/abc.pyt abstractmethod s t abstractpropertyc B s e Z d Z e Z RS( 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)
( R R t __doc__R R ( ( ( s /usr/lib64/python2.7/abc.pyR $ s t ABCMetac B sD e Z d Z d Z d � Z d � Z d d � Z d � Z d � Z RS( si 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 C s� t t | � j | | | | � } t d � | j � D� � } xb | D]Z } xQ t | d t � � D]: } t | | d � } t | d t � r` | j | � q` q` WqD Wt | � | _
t � | _ t � | _
t � | _ t j | _ | S( Nc s s- | ]# \ } } t | d t � r | Vq d S( R N( t getattrt False( t .0t namet value( ( s /usr/lib64/python2.7/abc.pys <genexpr>Y s t __abstractmethods__R ( t superR
t __new__t sett itemsR t NoneR t addt frozensetR R t
_abc_registryt
_abc_cachet _abc_negative_cachet _abc_invalidation_countert _abc_negative_cache_version( t mclsR t basest namespacet clst abstractst baseR ( ( s /usr/lib64/python2.7/abc.pyR V s !
c C s{ t | t t j f � s'