From 2a52f6e36c4cfaa449c82079f57d70932d633c60 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jannes=20H=C3=B6ke?= Date: Sat, 4 Jun 2016 12:43:06 +0200 Subject: [PATCH] for-variable --- game_manager.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/game_manager.py b/game_manager.py index 2eecfc9..c068fb1 100644 --- a/game_manager.py +++ b/game_manager.py @@ -48,9 +48,9 @@ class GameManager(object): self.chatid_games[chat_id] = list() # remove old games - for game in list(self.chatid_games[chat_id]): - if not game.players: - self.chatid_games[chat_id].remove(game) + for g in list(self.chatid_games[chat_id]): + if not g.players: + self.chatid_games[chat_id].remove(g) self.chatid_games[chat_id].append(game) return game