U
    _þ{fÜ  ã                   @  sL   d Z ddlmZ ddlZejdk rHddddœdd„Zdddd	œd
d„Zn dS )zè
Python3.9 introduces removesuffix and remove prefix.

They're reimplemented here for use in Python3.8.

NOTE: when pyupgrade --py39-plus removes nearly everything in this file,
this file and the associated tests should be removed.
é    )ÚannotationsN)é   é	   Ústr)ÚstringÚsuffixÚreturnc                 C  s    |   |¡r| d t|ƒ … S | S ©N)ÚendswithÚlen)r   r   © r   úW/var/www/html/Darija-Ai-API/env/lib/python3.8/site-packages/pandas/util/_str_methods.pyÚremovesuffix   s    
r   )r   Úprefixr   c                 C  s   |   |¡r| t|ƒd … S | S r	   )Ú
startswithr   )r   r   r   r   r   Úremoveprefix   s    
r   )Ú__doc__Ú
__future__r   ÚsysÚversion_infor   r   r   r   r   r   Ú<module>   s   
