B
     `/  ã               @   sT   d Z ddlmZmZmZmZ ddlZejdkr@dd„ Zdd„ Z	nd	d„ Zd
d„ Z	dS )z+
Provides Python 2/3 compatibility objects
é    )Úabsolute_importÚdivisionÚprint_functionÚunicode_literalsN)é   r   c             C   s
   t | |ƒS )zn
        Return the function object associated with the method of *cls* having
        *method_name*.
        )Úgetattr)ÚclsÚmethod_name© r
   úA/var/www/html/venv/lib/python3.7/site-packages/docx/opc/compat.pyÚcls_method_fn   s    r   c             C   s
   t | tƒS )zD
        Return True if *obj* is a string, False otherwise.
        )Ú
isinstanceÚstr)Úobjr
   r
   r   Ú	is_string   s    r   c             C   s   t | |ƒ}|jS )zn
        Return the function object associated with the method of *cls* having
        *method_name*.
        )r   Ú__func__)r   r	   Zunbound_methodr
   r
   r   r   %   s    
c             C   s
   t | tƒS )zD
        Return True if *obj* is a string, False otherwise.
        )r   Ú
basestring)r   r
   r
   r   r   -   s    )
Ú__doc__Ú
__future__r   r   r   r   ÚsysÚversion_infor   r   r
   r
   r
   r   Ú<module>   s   

