X Tutup
Skip to content

Commit aabcd6d

Browse files
committed
Import RefreshReqeustEvent from bpython.curtsiesfrontend.events (fixes bpython#436)
Signed-off-by: Sebastian Ramacher <sebastian+dev@ramacher.at>
1 parent bf5cf3c commit aabcd6d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

bpython/curtsiesfrontend/interaction.py

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

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

99
class StatusBar(BpythonInteraction):
@@ -67,7 +67,7 @@ def _check_for_expired_message(self):
6767
def process_event(self, e):
6868
"""Returns True if shutting down"""
6969
assert self.in_prompt or self.in_confirm or self.waiting_for_refresh
70-
if isinstance(e, events.RefreshRequestEvent):
70+
if isinstance(e, RefreshRequestEvent):
7171
self.waiting_for_refresh = False
7272
self.request_greenlet.switch()
7373
elif isinstance(e, events.PasteEvent):

0 commit comments

Comments
 (0)
X Tutup