
    d                    H    d Z ddlmZ ddlZej        dk     r
dd	ZddZdS 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)   	   stringstrsuffixreturnc                `    |                      |          r| d t          |                    S | S N)endswithlen)r   r   s     T/var/www/html/t/fyr/venv311/lib/python3.11/site-packages/pandas/util/_str_methods.pyremovesuffixr      s2    ??6"" 	*.S[[L.))    prefixc                ^    |                      |          r| t          |          d          S | S r   )
startswithr   )r   r   s     r   removeprefixr      s2    V$$ 	)#f++--((r   )r   r   r   r   r	   r   )r   r   r   r   r	   r   )__doc__
__future__r   sysversion_infor   r    r   r   <module>r      ss     # " " " " " 



f   
      	Dr   