Skip to content

Commit dd0a489

Browse files
committed
Clean up imports
Signed-off-by: Sebastian Ramacher <sebastian+dev@ramacher.at>
1 parent dbd8066 commit dd0a489

File tree

3 files changed

+5
-10
lines changed

3 files changed

+5
-10
lines changed

bpython/curtsiesfrontend/interpreter.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
import code
2-
import traceback
31
import sys
42
from codeop import CommandCompiler
53
from six import iteritems
@@ -13,7 +11,7 @@
1311
from bpython.curtsiesfrontend.parse import parse
1412
from bpython.repl import Interpreter as ReplInterpreter
1513
from bpython.config import getpreferredencoding
16-
from bpython._py3compat import py3
14+
1715

1816
default_colors = {
1917
Generic.Error: 'R',

bpython/curtsiesfrontend/repl.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@
33

44
import contextlib
55
import errno
6-
import functools
76
import greenlet
87
import logging
98
import os
@@ -15,7 +14,7 @@
1514
import threading
1615
import time
1716
import unicodedata
18-
from six.moves import range, builtins
17+
from six.moves import range
1918

2019
from pygments import format
2120
from bpython._py3compat import PythonLexer

bpython/test/test_repl.py

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
from itertools import islice
2+
from six.moves import range
23
import collections
34
import inspect
45
import os
56
import shutil
67
import socket
7-
import tempfile
8-
from six.moves import range
98
import sys
9+
import tempfile
1010

1111
from bpython._py3compat import py3
1212
from bpython import config, repl, cli, autocomplete
@@ -65,7 +65,7 @@ def test_next(self):
6565
next(self.matches_iterator)
6666

6767
self.assertEqual(next(self.matches_iterator), self.matches[0])
68-
self.assertEqual(next(self.matches_iterator), self. matches[1])
68+
self.assertEqual(next(self.matches_iterator), self.matches[1])
6969
self.assertNotEqual(next(self.matches_iterator), self.matches[1])
7070

7171
def test_previous(self):
@@ -249,8 +249,6 @@ def test_current_function_cpython(self):
249249
self.assert_get_source_error_for_current_function(
250250
collections.defaultdict, "could not find class definition")
251251

252-
253-
254252
def test_current_line(self):
255253
self.repl.interp.locals['a'] = socket.socket
256254
self.set_input_line('a')

0 commit comments

Comments
 (0)