diff pytouhou/formats/msg.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/formats/msg.py
+++ b/pytouhou/formats/msg.py
@@ -70,7 +70,7 @@ class MSG:
                         args = args[:-1] + (args[-1].decode('shift_jis'),)
                 else:
                     args = (data, )
-                    logger.warn('unknown msg opcode %d', opcode)
+                    logger.warning('unknown msg opcode %d', opcode)
 
                 msg.msgs[i].append((time, opcode, args))