Skip to content

Commit dee4d23

Browse files
committed
Remove more unused imports
1 parent fb372e3 commit dee4d23

File tree

5 files changed

+7
-16
lines changed

5 files changed

+7
-16
lines changed

bpython/importcompletion.py

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,11 @@
2020
# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
2121
# THE SOFTWARE.
2222

23+
import fnmatch
24+
import os
25+
import sys
26+
import warnings
27+
import importlib.machinery
2328

2429
from .line import (
2530
current_word,
@@ -28,12 +33,6 @@
2833
current_from_import_import,
2934
)
3035

31-
import fnmatch
32-
import os
33-
import sys
34-
import warnings
35-
import importlib.machinery
36-
3736
SUFFIXES = importlib.machinery.all_suffixes()
3837

3938
# The cached list of all known modules

bpython/test/test_autocomplete.py

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,7 @@
1-
from collections import namedtuple
21
import inspect
32
import keyword
4-
import sys
5-
6-
try:
7-
import unittest2 as unittest
8-
except ImportError:
9-
import unittest
3+
import unittest
4+
from collections import namedtuple
105

116
try:
127
import jedi

bpython/test/test_curtsies_painting.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
import itertools
2-
import os
32
import pydoc
43
import string
54
import sys

bpython/test/test_import_not_cyclical.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
import os
2-
import sys
32
import tempfile
43

54
from bpython.test import unittest

bpython/test/test_interpreter.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
import sys
22
import re
3-
from textwrap import dedent
43

54
from curtsies.fmtfuncs import bold, green, magenta, cyan, red, plain
65

0 commit comments

Comments
 (0)