3
���h�
� @ s2 d Z ddlZddlmZ ddlZG dd� d�ZdS )z�
This module houses a utility class for mocking deprecated modules.
It is for internal use only and should not be used beyond this purpose.
� N)�Iterablec @ sV e Zd ZdZddd�Zee d�dd�Zed�dd �ZeZ ed
�dd�Z
dd
d�ZdS )�_DeprecatedModulea�
Class for mocking deprecated modules.
Parameters
----------
deprmod : name of module to be deprecated.
deprmodto : name of module as a replacement, optional.
If not given, the __module__ attribute will
be used when needed.
removals : objects or methods in module that will no longer be
accessible once module is removed.
moved : dict, optional
dictionary of function name -> new location for moved
objects
Nc C sD || _ || _|| _| jd k r(t| j�| _|| _ttt| ���| _d S )N)�deprmod� deprmodto�removals� frozenset�moved�dir�type�self_dir)�selfr r r r � r
�:/tmp/pip-build-5_djhm0z/pandas/pandas/util/_depr_module.py�__init__ s
z_DeprecatedModule.__init__)�returnc C s | j � }t|�S )N)�_import_deprmodr )r �
deprmoduler
r
r �__dir__' |