##// END OF EJS Templates
absolute import in nbconvert.utils.pandoc...
Min RK -
Show More
@@ -1,33 +1,20 b''
1 """Utility for calling pandoc"""
1 """Utility for calling pandoc"""
2 #-----------------------------------------------------------------------------
2 # Copyright (c) IPython Development Team.
3 # Copyright (c) 2014 the IPython Development Team.
4 #
5 # Distributed under the terms of the Modified BSD License.
3 # Distributed under the terms of the Modified BSD License.
6 #
7 # The full license is in the file COPYING.txt, distributed with this software.
8 #-----------------------------------------------------------------------------
9
4
10 #-----------------------------------------------------------------------------
5 from __future__ import print_function, absolute_import
11 # Imports
12 #-----------------------------------------------------------------------------
13 from __future__ import print_function
14
6
15 # Stdlib imports
16 import subprocess
7 import subprocess
17 import warnings
8 import warnings
18 import re
9 import re
19 from io import TextIOWrapper, BytesIO
10 from io import TextIOWrapper, BytesIO
20
11
21 # IPython imports
22 from IPython.utils.py3compat import cast_bytes
12 from IPython.utils.py3compat import cast_bytes
23 from IPython.utils.version import check_version
13 from IPython.utils.version import check_version
24 from IPython.utils.process import is_cmd_found, FindCmdError
14 from IPython.utils.process import is_cmd_found, FindCmdError
25
15
26 from .exceptions import ConversionException
16 from .exceptions import ConversionException
27
17
28 #-----------------------------------------------------------------------------
29 # Classes and functions
30 #-----------------------------------------------------------------------------
31 _minimal_version = "1.12.1"
18 _minimal_version = "1.12.1"
32
19
33 def pandoc(source, fmt, to, extra_args=None, encoding='utf-8'):
20 def pandoc(source, fmt, to, extra_args=None, encoding='utf-8'):
General Comments 0
You need to be logged in to leave comments. Login now