mirror of
https://github.com/xonsh/xonsh.git
synced 2025-03-09 02:41:00 +01:00
flake8
This commit is contained in:
parent
eddd11ae86
commit
57488e2b4d
1 changed files with 3 additions and 1 deletions
|
@ -8,6 +8,7 @@ The best way to "declare" an event is something like::
|
|||
__xonsh_events__.on_spam.__doc__ = "Comes with eggs"
|
||||
"""
|
||||
|
||||
|
||||
class Event(set):
|
||||
"""
|
||||
A given event that handlers can register against.
|
||||
|
@ -58,7 +59,7 @@ class Event(set):
|
|||
Returns that truthy value.
|
||||
"""
|
||||
for rv in self.calleach(*pargs, **kwargs):
|
||||
if rv:
|
||||
if rv:
|
||||
return rv
|
||||
|
||||
def untilFalse(self, *pargs, **kwargs):
|
||||
|
@ -96,6 +97,7 @@ class Event(set):
|
|||
else:
|
||||
return pargs
|
||||
|
||||
|
||||
class Events:
|
||||
"""
|
||||
Container for all events in a system.
|
||||
|
|
Loading…
Add table
Reference in a new issue