diff pytouhou/vm/msgrunner.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 e15672733c93
children
line wrap: on
line diff
--- a/pytouhou/vm/msgrunner.py
+++ b/pytouhou/vm/msgrunner.py
@@ -60,7 +60,7 @@ class MSGRunner(metaclass=MetaRegistry):
                 try:
                     callback = self.handlers[instr_type]
                 except KeyError:
-                    logger.warn('unhandled msg opcode %d (args: %r)', instr_type, args)
+                    logger.warning('unhandled msg opcode %d (args: %r)', instr_type, args)
                 else:
                     callback(self, *args)