diff 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
line wrap: on
line diff
--- a/pytouhou/network.py
+++ b/pytouhou/network.py
@@ -88,6 +88,6 @@ class Network:
                     raise Exception #TODO
                 self.run_game_iter(game, self.keystate, self.remote_keystate)
             elif game.frame > 2:
-                logger.warn('Message not received in time, dropping frame.')
+                logger.warning('Message not received in time, dropping frame.')