o
     `/  ã                   @   sV   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	dS 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   ú?D:\Projects\ConvertPro\env\Lib\site-packages\docx\opc\compat.pyÚcls_method_fn   s   
r   c                 C   ó
   t | tƒS ©zD
        Return True if *obj* is a string, False otherwise.
        )Ú
isinstanceÚstr©Úobjr   r   r   Ú	is_string   ó   
r   c                 C   s   t | |ƒ}|jS r   )r   Ú__func__)r	   r
   Zunbound_methodr   r   r   r   %   s   
c                 C   r   r   )r   Z
basestringr   r   r   r   r   -   r   )
Ú__doc__Z
__future__r   r   r   r   ÚsysÚversion_infor   r   r   r   r   r   Ú<module>   s   
