From 170d6b48dc0f9b4353a1c965f9cb2f7e99b9e28c Mon Sep 17 00:00:00 2001 From: andi Date: Thu, 12 Sep 2019 22:51:35 +0200 Subject: [PATCH] minor changes to game.py --- cli/game.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cli/game.py b/cli/game.py index 7dcefe1..a0e8dcc 100644 --- a/cli/game.py +++ b/cli/game.py @@ -8,11 +8,11 @@ network = '' class EventHandler(): def __init__(self, network): + # brace yourselves, python incoming self.subclasses = {subcls.__name__: subcls for subcls in self.__class__.__subclasses__()} self.network = network def handle(self, name): - # brace yourselves, python incoming self.subclasses[name](network) class LeftFlapEventHandler(EventHandler):