⚝
One Hat Cyber Team
⚝
Your IP:
216.73.216.144
Server IP:
157.245.143.252
Server:
Linux www 6.11.0-9-generic #9-Ubuntu SMP PREEMPT_DYNAMIC Mon Oct 14 13:19:59 UTC 2024 x86_64
Server Software:
nginx/1.26.0
PHP Version:
8.3.11
Buat File
|
Buat Folder
Eksekusi
Dir :
~
/
snap
/
core
/
current
/
usr
/
lib
/
python3.5
/
__pycache__
/
View File Name :
abc.cpython-35.pyc
|ág´! ã @ s£ d Z d d l m Z d d „ Z Gd d „ d e ƒ Z Gd d „ d e ƒ Z Gd d „ d e ƒ Z Gd d „ d e ƒ Z Gd d „ d d e ƒZ d d „ Z d S)z3Abstract Base Classes (ABCs) according to PEP 3119.é )ÚWeakSetc C s d | _ | S)aÞ 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)Ú__isabstractmethod__)Úfuncobj© r ú/usr/lib/python3.5/abc.pyÚabstractmethod s r c s. e Z d Z d Z d Z ‡ f d d † Z ‡ S)ÚabstractclassmethodaO A decorator indicating abstract classmethods. Similar to abstractmethod. Usage: class C(metaclass=ABCMeta): @abstractclassmethod def my_abstract_classmethod(cls, ...): ... 'abstractclassmethod' is deprecated. Use 'classmethod' with 'abstractmethod' instead. Tc s d | _ t ƒ j | ƒ d S)NT)r ÚsuperÚ__init__)ÚselfÚcallable)Ú __class__r r r 0 s zabstractclassmethod.__init__)Ú__name__Ú __module__Ú__qualname__Ú__doc__r r r r )r r r s r c s. e Z d Z d Z d Z ‡ f d d † Z ‡ S)ÚabstractstaticmethodaO A decorator indicating abstract staticmethods. Similar to abstractmethod. Usage: class C(metaclass=ABCMeta): @abstractstaticmethod def my_abstract_staticmethod(...): ... 'abstractstaticmethod' is deprecated. Use 'staticmethod' with 'abstractmethod' instead. Tc s d | _ t ƒ j | ƒ d S)NT)r r r )r r )r r r r H s zabstractstaticmethod.__init__)r r r r r r r r )r r r 5 s r c @ s e Z d Z d Z d Z d S)Úabstractpropertyak 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) 'abstractproperty' is deprecated. Use 'property' with 'abstractmethod' instead. TN)r r r r r r r r r r M s r c sa e Z d Z d Z d Z ‡ f d d † Z d d „ Z d d d „ Z d d „ Z d d „ Z ‡ S)ÚABCMetaai 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()). r c sÙ t ƒ j | | | | ƒ } d d „ | j ƒ Dƒ } x_ | D]W } xN t | d t ƒ ƒ D]7 } t | | d ƒ } t | d d ƒ rW | j | ƒ qW Wq; Wt | ƒ | _ t ƒ | _ t ƒ | _ t ƒ | _ t j | _ | S)Nc S s. h | ]$ \ } } t | d d ƒ r | ’ q S)r F)Úgetattr)Ú.0ÚnameÚvaluer r r ú
‡ s z"ABCMeta.__new__.
.
Ú__abstractmethods__r F)r Ú__new__Úitemsr ÚsetÚaddÚ frozensetr r Ú _abc_registryÚ _abc_cacheÚ_abc_negative_cacher Ú_abc_invalidation_counterÚ_abc_negative_cache_version)Úmclsr ÚbasesÚ namespaceÚclsÚ abstractsÚbaser )r r r r „ s zABCMeta.__new__c C sl t | t ƒ s t d ƒ ‚ t | | ƒ r. | St | | ƒ rI t d ƒ ‚ | j j | ƒ t j d 7_ | S)zsRegister a virtual subclass of an ABC. Returns the subclass, to allow usage as a class decorator. zCan only register classesz'Refusing to create an inheritance cycleé ) Ú isinstanceÚtypeÚ TypeErrorÚ issubclassÚRuntimeErrorr r r r# )r( Úsubclassr r r Úregister— s zABCMeta.registerNc C s“ t d | j | j f d | ƒt d t j d | ƒxU t | j j ƒ ƒ D]> } | j d ƒ rM t | | ƒ } t d | | f d | ƒqM Wd S)z'Debug helper to print the ABC registry.zClass: %s.%sÚfilezInv.counter: %sÚ_abc_z%s: %rN) Úprintr r r r# ÚsortedÚ__dict__ÚkeysÚ startswithr )r( r3 r r r r r Ú_dump_registry© s zABCMeta._dump_registryc s‰ | j } | ˆ j k r d St | ƒ } | | k rf ˆ j t j k rY | ˆ j k rY d Sˆ j | ƒ St ‡ f d d † | | h Dƒ ƒ S)z'Override for isinstance(instance, cls).TFc 3 s | ] } ˆ j | ƒ Vq d S)N)Ú__subclasscheck__)r Úc)r( r r ú
À s z,ABCMeta.__instancecheck__.
.
) r r! r- r$ r r# r" r; Úany)r( Úinstancer1 Úsubtyper )r( r Ú__instancecheck__² s zABCMeta.__instancecheck__c C sa | | j k r d S| j t j k r@ t ƒ | _ t j | _ n | | j k rS d S| j | ƒ } | t k r° t | t ƒ sƒ t ‚ | rœ | j j | ƒ n | j j | ƒ | S| t | d f ƒ k rÜ | j j | ƒ d Sx4 | j D]) } t | | ƒ ræ | j j | ƒ d Sqæ Wx7 | j ƒ D]) } t | | ƒ r | j j | ƒ d Sq W| j j | ƒ d S)z'Override for issubclass(subclass, cls).TFÚ__mro__)r! r$ r r# r r" Ú__subclasshook__ÚNotImplementedr, ÚboolÚAssertionErrorr r r r/ Ú__subclasses__)r( r1 ÚokÚrclsÚsclsr r r r;  s6 zABCMeta.__subclasscheck__) r r r r r# r r2 r: rA r; r r )r r r m s r c @ s e Z d Z d Z d S)ÚABCzVHelper class that provides a standard way to create an ABC using inheritance. N)r r r r r r r r rK ê s rK Ú metaclassc C s t j S)zûReturns the current ABC cache token. The token is an opaque object (supporting equality testing) identifying the current version of the ABC cache for virtual subclasses. The token changes with every call to ``register()`` on any ABC. )r r# r r r r Úget_cache_tokenñ s rM N)r Ú_weakrefsetr r Úclassmethodr Ústaticmethodr Úpropertyr r- r rK rM r r r r Ú
s }