B
    eJd(                 @   s^   d dl Z d dlZdddddddd	hZd
d Ze dde dd Zdd Zdd ZddgZ	dS )    NZrenderer_defaultsZtemplate_defaultsZextract_chart_studioZremove_deprecationsZv4_subplotsZorca_defaultsZ	timezonesZ
trace_uidsc              C   s   dd l } d| jkrtdd S )Nr   plotlyzDThe _plotly_future_ module must be imported before the plotly module)sysmodulesImportError)r    r   J/var/www/html/venv/lib/python3.7/site-packages/_plotly_future_/__init__.py_assert_plotly_not_imported   s    
r   defaultz*.*?is deprecated, please use chart_studio*c             C   s   t jdj| dtdd d S )NzXThe plotly.{submodule} module is deprecated, please use chart_studio.{submodule} instead)	submodule   )
stacklevel)warningswarnformatDeprecationWarning)r
   r   r   r   _chart_studio_warning!   s
    r   c             C   s   t dj| dd S )Nz
The plotly.{submodule} module is deprecated,
please install the chart-studio package and use the
chart_studio.{submodule} module instead. 
)r
   )r   r   )r
   r   r   r   _chart_studio_error*   s    r   c                s~    j } j}ddg|ddd   |g }ddg|ddd   |g }dj||dt  fdd}|S )	N.r      Zchart_studioz;{plotly_name} is deprecated, please use {chart_studio_name})plotly_namechart_studio_namec                 s   t jtdd  | |S )Nr   )r   )r   r   r   )argskwargs)fnmsgr   r   wrapperE   s    z*_chart_studio_deprecation.<locals>.wrapper)__name__
__module__joinsplitr   	functoolswraps)r   fn_nameZ	fn_moduler   r   r   r   )r   r   r   _chart_studio_deprecation6   s    $ 
r#   _future_flags)
r   r    r$   r   filterwarningsr   r   r   r#   __all__r   r   r   r   <module>   s    

	