comparison pytouhou/network.py @ 764:d18c0bf11138

Python: Use logger.warning() as logger.warn() is deprecated
author Emmanuel Gil Peyrot <linkmauve@linkmauve.fr>
date Fri, 26 Aug 2022 18:55:39 +0200
parents d1f0bb0b7a17
children
comparison
equal deleted inserted replaced
763:468dab1dd683 764:d18c0bf11138
86 self.remote_keystate = old_keystate 86 self.remote_keystate = old_keystate
87 else: 87 else:
88 raise Exception #TODO 88 raise Exception #TODO
89 self.run_game_iter(game, self.keystate, self.remote_keystate) 89 self.run_game_iter(game, self.keystate, self.remote_keystate)
90 elif game.frame > 2: 90 elif game.frame > 2:
91 logger.warn('Message not received in time, dropping frame.') 91 logger.warning('Message not received in time, dropping frame.')
92 92
93 93