X Tutup
Skip to content

Commit 6a17d72

Browse files
simplify events by removing who parameter
Wasn't being used anywhere and never has been and it should have been sender anyway, or maybe whom
1 parent 17b9e14 commit 6a17d72

File tree

1 file changed

+5
-8
lines changed

1 file changed

+5
-8
lines changed

bpython/curtsiesfrontend/events.py

Lines changed: 5 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -15,25 +15,22 @@ def __repr__(self):
1515

1616
class RefreshRequestEvent(curtsies.events.Event):
1717
"""Request to refresh REPL display ASAP"""
18-
def __init__(self, who='?'):
19-
self.who = who
20-
2118
def __repr__(self):
22-
return "<RefreshRequestEvent from %r for now>" % (self.who,)
19+
return "<RefreshRequestEvent for now>"
2320

2421

2522
class ScheduledRefreshRequestEvent(curtsies.events.ScheduledEvent):
2623
"""Request to refresh the REPL display at some point in the future
2724
2825
Used to schedule the disappearance of status bar message that only shows
2926
for a few seconds"""
30-
def __init__(self, when, who='?'):
31-
self.who = who
27+
def __init__(self, when):
3228
self.when = when # time.time() + how long
3329

3430
def __repr__(self):
35-
return ("<RefreshRequestEvent from %r for %s seconds from now>" %
36-
(self.who, self.when - time.time()))
31+
return ("<RefreshRequestEvent for %s seconds from now>" %
32+
(self.when - time.time()))
33+
3734

3835
class RunStartupFileEvent(curtsies.events.Event):
3936
"""Request to run the startup file."""

0 commit comments

Comments
 (0)
X Tutup