o
    ¹i·  ã                   @   s   d Z ddlmZ ddd„ZdS )zN
Utilities for version comparison

It is a bit ridiculous that we need these.
é    )ÚVersionNc                 C   sH   z|durt | ƒt |ƒk nd}t | ƒt |ƒko|W S  ty#   Y dS w )aâ  check version string v >= min_v and v < max_v

    Parameters
    ----------
    v : str
        version of the package
    min_v : str
        minimal version supported
    max_v : str
        earliest version not supported
    Note: If dev/prerelease tags result in TypeError for string-number
    comparison, it is assumed that the check passes and the version dependency
    is satisfied. Users on dev branches are responsible for keeping their own
    packages up to date.
    NT)r   Ú	TypeError)ÚvÚmin_vÚmax_vÚ	below_max© r   úR/var/www/edux/Edux_v2/venv/lib/python3.10/site-packages/nbconvert/utils/version.pyÚcheck_version   s   ÿr
   )N)Ú__doc__Úpackaging.versionr   r
   r   r   r   r	   Ú<module>   s    	