U
    >ih                     @   s$   d Z ddlmZ ddlZdd ZdS )z(Helpers for deprecated code and modules.    Nc                 C   s>   z"t |  tdj| dt W n t jk
r8   Y nX dS )zIssue a warning if `distribution_name` is installed.

    In a future release, this method will be updated to raise ImportError
    rather than just send a warning.

    Args:
        distribution_name (str): The name of the obsolete distribution.
    z}The {pkg} distribution is now obsolete. Please `pip uninstall {pkg}`. In the future, this warning will become an ImportError.)pkgN)metadatadistributionwarningswarnformatDeprecationWarningZPackageNotFoundError)Zdistribution_name r	   B/tmp/pip-unpacked-wheel-n32la62k/google/cloud/obsolete/__init__.pycomplain   s    	
r   )__doc__importlib.metadatar   r   r   r	   r	   r	   r
   <module>   s   