From 947055120e2268cca2672653490c294939123844 Mon Sep 17 00:00:00 2001 From: michaelpacer Date: Mon, 19 Sep 2016 22:16:15 -0700 Subject: [PATCH] Add appropriate call to __init__.py --- nbconvert/exporters/__init__.py | 4 +++- nbconvert/exporters/exporter_locator.py | 5 ++++- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/nbconvert/exporters/__init__.py b/nbconvert/exporters/__init__.py index 247cb7e98..4747b336d 100644 --- a/nbconvert/exporters/__init__.py +++ b/nbconvert/exporters/__init__.py @@ -1,4 +1,6 @@ -from .export import * +from .base import (export, get_exporter, + ExporterNameError, get_export_names) +from .exporter_locator import export_by_name from .html import HTMLExporter from .slides import SlidesExporter from .templateexporter import TemplateExporter diff --git a/nbconvert/exporters/exporter_locator.py b/nbconvert/exporters/exporter_locator.py index b71fa4f9a..741ee0803 100644 --- a/nbconvert/exporters/exporter_locator.py +++ b/nbconvert/exporters/exporter_locator.py @@ -1,4 +1,4 @@ -"""Module containing single call export functions.""" +"""Deprecated as of 5.0. Module containing hard-coded exporting functions.""" # Copyright (c) Jupyter Development Team. # Distributed under the terms of the Modified BSD License. @@ -24,6 +24,9 @@ # Functions #----------------------------------------------------------------------------- +warnings.warn("""`nbconvert.exporters.exporter_locator` is deprecated in favor of `nbconvert.exporters.base` since nbconvert 5.0.""", + DeprecationWarning) + __all__ = [ 'export', 'export_by_name',