##// END OF EJS Templates
remove code specific to python2
Srinivas Reddy Thatiparthy -
Show More
@@ -1,8 +1,5 b''
1 import unittest
1 import unittest
2 try: # Python 3.3 +
2 from unittest.mock import Mock
3 from unittest.mock import Mock
4 except ImportError:
5 from mock import Mock
6
3
7 from IPython.core import events
4 from IPython.core import events
8 import IPython.testing.tools as tt
5 import IPython.testing.tools as tt
@@ -9,6 +9,7 b' import os'
9 import tempfile
9 import tempfile
10 import shutil
10 import shutil
11 import subprocess
11 import subprocess
12 from base64 import encodebytes
12
13
13 from IPython.utils.process import find_cmd, FindCmdError
14 from IPython.utils.process import find_cmd, FindCmdError
14 from traitlets.config import get_config
15 from traitlets.config import get_config
@@ -16,11 +17,6 b' from traitlets.config.configurable import SingletonConfigurable'
16 from traitlets import List, Bool, Unicode
17 from traitlets import List, Bool, Unicode
17 from IPython.utils.py3compat import cast_unicode, cast_unicode_py2 as u, PY3
18 from IPython.utils.py3compat import cast_unicode, cast_unicode_py2 as u, PY3
18
19
19 try: # Py3
20 from base64 import encodebytes
21 except ImportError: # Py2
22 from base64 import encodestring as encodebytes
23
24
20
25 class LaTeXTool(SingletonConfigurable):
21 class LaTeXTool(SingletonConfigurable):
26 """An object to store configuration of the LaTeX tool."""
22 """An object to store configuration of the LaTeX tool."""
@@ -3,12 +3,7 b''
3
3
4 # Copyright (c) IPython Development Team.
4 # Copyright (c) IPython Development Team.
5 # Distributed under the terms of the Modified BSD License.
5 # Distributed under the terms of the Modified BSD License.
6
6 from unittest.mock import patch
7 try:
8 from unittest.mock import patch
9 except ImportError:
10 from mock import patch
11
12 import nose.tools as nt
7 import nose.tools as nt
13
8
14 from IPython.lib import latextools
9 from IPython.lib import latextools
General Comments 0
You need to be logged in to leave comments. Login now