Removed legacy code, unified Client and Server Route
This commit is contained in:
parent
1105b0fc8c
commit
e03102679d
1 changed files with 0 additions and 24 deletions
|
@ -1,18 +1,3 @@
|
|||
BROADCAST = 0
|
||||
ROUTE = 1
|
||||
SOCK = 2
|
||||
|
||||
|
||||
class InvalidRouteSetup(AttributeError):
|
||||
def __init__(self, msg):
|
||||
super(AttributeError, self).__init__(msg)
|
||||
|
||||
|
||||
class InvalidRouteLength(AttributeError):
|
||||
def __init__(self, msg):
|
||||
super(AttributeError, self).__init__(msg)
|
||||
|
||||
|
||||
class Route:
|
||||
def run(self, data, handler):
|
||||
pass
|
||||
|
@ -21,15 +6,6 @@ class Route:
|
|||
pass
|
||||
|
||||
|
||||
class ServerRoute(Route):
|
||||
REQUIRED = []
|
||||
PATCHED = False
|
||||
|
||||
|
||||
class ClientRoute(Route):
|
||||
pass
|
||||
|
||||
|
||||
def create_routes(routes, handler):
|
||||
routes = routes.copy()
|
||||
reverse_routes = {}
|
||||
|
|
Reference in a new issue