
    ,h                     0    d Z ddlmZ d Zd Zd Zd ZeZy)z(Provides Python 2 compatibility objects.    )StringIOc                 .    t        | t        t        f      S )z@Return True if *obj* is an integer (int, long), False otherwise.)
isinstanceintlongobjs    U/var/www/html/Resume-Scraper/venv/lib/python3.12/site-packages/pptx/compat/python2.py
is_integerr      s    cC;''    c                 "    t        | t              S )z2Return True if *obj* is a string, False otherwise.)r   
basestringr   s    r
   	is_stringr      s    c:&&r   c                 "    t        | t              S )z:Return True if *obj* is a unicode string, False otherwise.)r   unicoder   s    r
   
is_unicoder      s    c7##r   c                     t        | t              sd}t        |t        |       | fz        t        | t              r| S t	        | d      S )zReturn *text* as a unicode string.

    *text* can be a 7-bit ASCII string, a UTF-8 encoded 8-bit string, or unicode. String
    values are converted to unicode assuming UTF-8 encoding. Unicode values are returned
    unchanged.
    zAexpected unicode or UTF-8 (or ASCII) encoded str, got %s value %szutf-8)r   r   	TypeErrortyper   )texttmpls     r
   
to_unicoder      sH     dJ'RT
D1122$ 4!!r   N)	__doc__r   BytesIOr   r   r   r   r   Unicode r   r
   <module>r      s(    / ((
'
$
"$ r   