
    ff&                    f    d dl mZ d dlZd dlZd dlmZ ddlmZ  ej                  e
      ZdddZy)	    )annotationsN)Path   )_typesc                2   |t        |       j                  d      }t        j                  d| t	        j
                  |d             ddlm}  |       }|j                  |      }t        |j                               }t        j                  d| |       |S )zreturn a mapping from mime/pseudo-mime content
    :param path: path to the mime file
    :param content: content of the mime file, if None, read from path
    :rtype: dict[str, str]

    zutf-8)encodingzmime %s content:
%sz    r   )HeaderParserzmime %s data:
%s)r   	read_textlogdebugtextwrapindentemail.parserr	   parsestrdictitems)pathcontentr	   parsermessagedatas         r/var/dept/share/cheung/public_html/OutSchool/python/env/lib/python3.12/site-packages/setuptools_scm/integration.pydata_from_mimer      sz     t*&&&8II$dHOOGV,LM)^Foog&G DII!4.K    )N)r   z_t.PathTr   z
None | strreturnzdict[str, str])
__future__r   loggingr   pathlibr    r   _t	getLogger__name__r   r    r   r   <module>r$      s+    "    g!r   