B
    6‹d·  ã               @   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   sJ   y0|dk	rt | ƒt |ƒk nd}t | ƒt |ƒko0|S  tk
rD   dS X dS )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)ÚvZmin_vZmax_vZ	below_max© r   úd/work/yifan.wang/ringdown/master-ringdown-env/lib/python3.7/site-packages/nbconvert/utils/version.pyÚcheck_version   s
    r   )N)Ú__doc__Zpackaging.versionr   r   r   r   r   r   Ú<module>   s   