Show More
@@ -9,12 +9,8 b' import os' | |||||
9 | import sys |
|
9 | import sys | |
10 | import warnings |
|
10 | import warnings | |
11 | from unittest import TestCase |
|
11 | from unittest import TestCase | |
12 |
|
12 | from importlib import invalidate_caches | ||
13 | try: |
|
13 | from io import StringIO | |
14 | from importlib import invalidate_caches # Required from Python 3.3 |
|
|||
15 | except ImportError: |
|
|||
16 | def invalidate_caches(): |
|
|||
17 | pass |
|
|||
18 |
|
14 | |||
19 | import nose.tools as nt |
|
15 | import nose.tools as nt | |
20 |
|
16 | |||
@@ -32,10 +28,6 b' from IPython.utils.io import capture_output' | |||||
32 | from IPython.utils.tempdir import TemporaryDirectory |
|
28 | from IPython.utils.tempdir import TemporaryDirectory | |
33 | from IPython.utils.process import find_cmd |
|
29 | from IPython.utils.process import find_cmd | |
34 |
|
30 | |||
35 | if py3compat.PY3: |
|
|||
36 | from io import StringIO |
|
|||
37 | else: |
|
|||
38 | from StringIO import StringIO |
|
|||
39 |
|
31 | |||
40 |
|
32 | |||
41 | _ip = get_ipython() |
|
33 | _ip = get_ipython() |
General Comments 0
You need to be logged in to leave comments.
Login now