Removed setup (__init__ can now be used)
This commit is contained in:
parent
444f169b86
commit
f87501a7a7
1 changed files with 3 additions and 3 deletions
|
@ -1,5 +1,8 @@
|
|||
import Logging
|
||||
|
||||
BROADCAST = 0
|
||||
ROUTE = 1
|
||||
SOCK = 2
|
||||
|
||||
class InvalidRouteSetup(AttributeError):
|
||||
def __init__(self, msg):
|
||||
|
@ -7,9 +10,6 @@ class InvalidRouteSetup(AttributeError):
|
|||
|
||||
class ServerRoute:
|
||||
def __init__(self, **kwargs):
|
||||
self.setup(**kwargs)
|
||||
|
||||
def setup(self, **kwargs):
|
||||
pass
|
||||
|
||||
def run(self, data, handler):
|
||||
|
|
Reference in a new issue