Skip to content

Commit aaa0998

Browse files
committed
Import clean up
Signed-off-by: Sebastian Ramacher <sebastian+dev@ramacher.at>
1 parent 9a79231 commit aaa0998

File tree

10 files changed

+11
-15
lines changed

10 files changed

+11
-15
lines changed

bpython/curtsiesfrontend/_internal.py

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

23-
import sys
2423
import pydoc
2524

2625
import bpython._internal

bpython/curtsiesfrontend/coderunner.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@
1111

1212
import code
1313
import signal
14-
import sys
1514
import greenlet
1615
import logging
1716

bpython/curtsiesfrontend/filewatch.py

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
import time
21
import os
32
from collections import defaultdict
43

@@ -30,9 +29,7 @@ def reset(self):
3029
self.observer.unschedule_all()
3130

3231
def _add_module(self, path):
33-
"""Add a python module to track changes to
34-
35-
Can"""
32+
"""Add a python module to track changes"""
3633
path = os.path.abspath(path)
3734
for suff in importcompletion.SUFFIXES:
3835
if path.endswith(suff):
@@ -45,7 +42,7 @@ def _add_module(self, path):
4542

4643
def _add_module_later(self, path):
4744
self.modules_to_add_later.append(path)
48-
45+
4946
def track_module(self, path):
5047
"""
5148
Begins tracking this if activated, or remembers to track later.

bpython/curtsiesfrontend/preprocess.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,6 @@
11
"""Tools for preparing code to be run in the REPL (removing blank lines, etc)"""
22
import re
33

4-
from bpython.curtsiesfrontend.interpreter import code_finished_will_parse
5-
64
#TODO specifically catch IndentationErrors instead of any syntax errors
75

86
def indent_empty_lines(s, compiler):

bpython/curtsiesfrontend/replpainter.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -172,7 +172,7 @@ def add_border(line):
172172
r = fsarray(output_lines[:min(rows-1, len(output_lines)-1)] + output_lines[-1:])
173173
return r
174174

175-
def paint_last_events(rows, columns, names):
175+
def paint_last_events(rows, columns, names, config):
176176
if not names:
177177
return fsarray([])
178178
width = min(max(len(name) for name in names), columns-2)

bpython/test/test_curtsies_painting.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
import unittest
1111

1212
from curtsies.formatstringarray import FormatStringTest, fsarray
13-
from curtsies.fmtfuncs import *
13+
from curtsies.fmtfuncs import cyan, bold, green, yellow, on_magenta, red
1414
from bpython.curtsiesfrontend.events import RefreshRequestEvent
1515

1616
from bpython import config

bpython/test/test_curtsies_repl.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
# coding: utf8
22
import code
33
from contextlib import contextmanager
4-
from functools import partial
54
from mock import Mock, patch, MagicMock
65
import os
76
from StringIO import StringIO

bpython/test/test_interpreter.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
import unittest
55

66
from bpython.curtsiesfrontend import interpreter
7-
from curtsies.fmtfuncs import *
7+
from curtsies.fmtfuncs import bold, green, magenta, cyan, red, plain
88

99
class TestInterpreter(unittest.TestCase):
1010
def test_syntaxerror(self):

bpython/test/test_manual_readline.py

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,12 @@
33
except ImportError:
44
import unittest
55

6-
from bpython.curtsiesfrontend.manual_readline import *
6+
from bpython.curtsiesfrontend.manual_readline import \
7+
left_arrow, right_arrow, beginning_of_line, forward_word, back_word, \
8+
end_of_line, delete, last_word_pos, backspace, delete_from_cursor_back, \
9+
delete_from_cursor_forward, delete_rest_of_word, delete_word_to_cursor, \
10+
transpose_character_before_cursor, UnconfiguredEdits, \
11+
delete_word_from_cursor_back
712

813

914
class TestManualReadline(unittest.TestCase):

bpython/test/test_preprocess.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@
33
import difflib
44
import inspect
55
import re
6-
import unittest
76

87
try:
98
import unittest2 as unittest

0 commit comments

Comments
 (0)