• File: classinstance.cpython-37.pyc
  • Full Path: /home3/farmfre2/public_html/ALFA_DATA/alfasymlink/root/opt/alt/python37/lib/python3.7/site-packages/paste/util/__pycache__/classinstance.cpython-37.pyc
  • Date Modified: 12/01/2019 7:09 PM
  • File size: 1.74 KB
  • MIME-type: text/x-bytecode.python
  • Charset: 8 bit
B

bN]@s$GdddeZGdddeZdS)c@s"eZdZdZddZdddZdS)classinstancemethodz
    Acts like a class method when called from a class, like an
    instance method when called by an instance.  The method should
    take two arguments, 'self' and 'cls'; one of these will be None
    depending on how the method was called.
    cCs||_|j|_dS)N)func__doc__)selfrrI/opt/alt/python37/lib/python3.7/site-packages/paste/util/classinstance.py__init__szclassinstancemethod.__init__NcCst|j||dS)N)objtype)_methodwrapperr)rrr	rrr__get__szclassinstancemethod.__get__)N)__name__
__module____qualname__rrrrrrrrsrc@s$eZdZddZddZddZdS)r
cCs||_||_||_dS)N)rrr	)rrrr	rrrrsz_methodwrapper.__init__cOs4|ds|drtd|j|j|jf||S)NrclszAYou cannot use 'self' or 'cls' arguments to a classinstancemethod)Zhas_keyAssertionErrorrrr	)rargskwrrr__call__sz_methodwrapper.__call__cCs:|jdkrd|jj|jjfSd|jj|jj|jfSdS)Nz<bound class method %s.%s>z<bound method %s.%s of %r>)rr	rr	func_name)rrrr__repr__ s

z_methodwrapper.__repr__N)rr
rrrrrrrrr
sr
N)objectrr
rrrr<module>s