U
    h                     @   s4   d Z ddlmZ ddlmZmZ G dd deZdS )a   
For the ``future`` package.

A special fixer that ensures that these lines have been added::

    from future import standard_library
    standard_library.install_hooks()

even if the only module imported was ``urllib``, in which case the regular fixer
wouldn't have added these lines.

    )	FixUrllib)touch_import_top	find_rootc                       s    e Zd ZdZ fddZ  ZS )FixFutureStandardLibraryUrllib   c                    s*   t |}tt| ||}tdd| |S )NfutureZstandard_library)r   superr   	transformr   )selfnoderesultsrootresult	__class__ f/var/www/html/venv/lib/python3.8/site-packages/libfuturize/fixes/fix_future_standard_library_urllib.pyr	      s    z(FixFutureStandardLibraryUrllib.transform)__name__
__module____qualname__Z	run_orderr	   __classcell__r   r   r   r   r      s   r   N)__doc__Zlib2to3.fixes.fix_urllibr   Zlibfuturize.fixer_utilr   r   r   r   r   r   r   <module>   s   