Skip to content
This repository was archived by the owner on May 17, 2022. It is now read-only.

Commit 3a28e50

Browse files
committed
sendall command bug fixed
1 parent a351dbb commit 3a28e50

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

decorators.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ def decorator_handler(func):
3737
return handlerClass(callback = func, **kwargs)
3838
return decorator_handler
3939

40-
def MessageHandlerDecorator(self,filters = Filters.all, group=1, **kwargs):
40+
def MessageHandlerDecorator(filters = Filters.all, group=1, **kwargs):
4141
def decorator_message(func):
4242
return MessageHandler(filters, func, kwargs)
4343
return decorator_message
@@ -119,9 +119,9 @@ def __init__(self, entry_points:List[Handler], **kwargs):
119119
self.fallbacks = []
120120
self.__kwargs = kwargs
121121

122-
def state(self, *states):
122+
def state(self, *_states):
123123
def decorator_state(handler:Handler):
124-
for state in states:
124+
for state in _states:
125125
if not state in self.states:
126126
self.states[state] = []
127127
self.states[state].append(handler)

0 commit comments

Comments
 (0)