Mercurial > touhou
diff pytouhou/formats/ecl.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/ecl.py +++ b/pytouhou/formats/ecl.py @@ -215,7 +215,7 @@ class ECL: args = args[:-1] + (args[-1].decode('shift_jis'),) else: args = (data, ) - logger.warn('unknown opcode %d', opcode) + logger.warning('unknown opcode %d', opcode) ecl.subs[-1].append((time, opcode, rank_mask, param_mask, args)) @@ -252,7 +252,7 @@ class ECL: args = unpack('<%s' % cls._main_instructions[opcode][0], data) else: args = (data,) - logger.warn('unknown main opcode %d', opcode) + logger.warning('unknown main opcode %d', opcode) ecl.mains[-1].append((time, sub, opcode, args))