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