Skip to content

Commit 159e153

Browse files
committed
Remove some renames
1 parent de90c37 commit 159e153

File tree

2 files changed

+23
-27
lines changed

2 files changed

+23
-27
lines changed

bpython/curtsiesfrontend/interaction.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,12 +3,12 @@
33
import curtsies.events as events
44

55
from ..translations import _
6-
from ..repl import Interaction as BpythonInteraction
6+
from ..repl import Interaction
77
from ..curtsiesfrontend.events import RefreshRequestEvent
88
from ..curtsiesfrontend.manual_readline import edit_keys
99

1010

11-
class StatusBar(BpythonInteraction):
11+
class StatusBar(Interaction):
1212
"""StatusBar and Interaction for Repl
1313
1414
Passing of control back and forth between calls that use interact api
@@ -157,7 +157,7 @@ def notify(self, msg, n=3, wait_for_keypress=False):
157157
self.request_refresh()
158158
self.main_context.switch(msg)
159159

160-
# below Really ought to be called from greenlets other than main because
160+
# below really ought to be called from greenlets other than main because
161161
# they block
162162
def confirm(self, q):
163163
"""Expected to return True or False, given question prompt q"""

bpython/curtsiesfrontend/repl.py

Lines changed: 20 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,5 @@
1-
import blessings
21
import contextlib
32
import errno
4-
import greenlet
53
import itertools
64
import logging
75
import os
@@ -13,12 +11,8 @@
1311
import time
1412
import unicodedata
1513

16-
from pygments import format as pygformat
17-
from pygments.lexers import Python3Lexer
18-
from pygments.formatters import TerminalFormatter
19-
20-
from cwcwidth import wcswidth
21-
14+
import blessings
15+
import greenlet
2216
from curtsies import (
2317
FSArray,
2418
fmtstr,
@@ -30,17 +24,10 @@
3024
)
3125
from curtsies.configfile_keynames import keymap as key_dispatch
3226
from curtsies.input import is_main_thread
33-
34-
from .. import __version__, autocomplete
35-
from ..repl import (
36-
Repl as BpythonRepl,
37-
SourceNotFound,
38-
LineTypeTranslator as LineType,
39-
)
40-
from ..config import getpreferredencoding
41-
from ..formatter import BPythonFormatter
42-
from ..translations import _
43-
from ..pager import get_pager_command
27+
from cwcwidth import wcswidth
28+
from pygments import format as pygformat
29+
from pygments.formatters import TerminalFormatter
30+
from pygments.lexers import Python3Lexer
4431

4532
from . import events as bpythonevents, sitefix, replpainter as paint
4633
from .coderunner import (
@@ -49,14 +36,23 @@
4936
)
5037
from .filewatch import ModuleChangedEventHandler
5138
from .interaction import StatusBar
52-
from .manual_readline import edit_keys
53-
from .parse import parse as bpythonparse, func_for_letter, color_for_letter
54-
from .preprocess import preprocess
5539
from .interpreter import (
5640
Interp,
5741
code_finished_will_parse,
5842
)
59-
43+
from .manual_readline import edit_keys
44+
from .parse import parse as bpythonparse, func_for_letter, color_for_letter
45+
from .preprocess import preprocess
46+
from .. import __version__
47+
from ..config import getpreferredencoding
48+
from ..formatter import BPythonFormatter
49+
from ..pager import get_pager_command
50+
from ..repl import (
51+
Repl,
52+
SourceNotFound,
53+
LineTypeTranslator as LineType,
54+
)
55+
from ..translations import _
6056

6157
logger = logging.getLogger(__name__)
6258

@@ -271,7 +267,7 @@ def _find_module(self, fullname, path=None):
271267
return ImportLoader(self.watcher, loader)
272268

273269

274-
class BaseRepl(BpythonRepl):
270+
class BaseRepl(Repl):
275271
"""Python Repl
276272
277273
Reacts to events like

0 commit comments

Comments
 (0)