B
    Z[                 @   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.
    )LooseVersionNc             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   6lib/python3.7/site-packages/nbconvert/utils/version.pycheck_version   s
    r   )N)__doc__Zdistutils.versionr   r   r   r   r   r   <module>   s   