diff pytouhou/formats/std.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/std.py
+++ b/pytouhou/formats/std.py
@@ -143,7 +143,7 @@ class Stage:
                 args = unpack('<%s' % cls._instructions[opcode][0], data)
             else:
                 args = (data,)
-                logger.warn('unknown opcode %d', opcode)
+                logger.warning('unknown opcode %d', opcode)
             stage.script.append((frame, opcode, args))
 
         return stage