comparison 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
comparison
equal deleted inserted replaced
763:468dab1dd683 764:d18c0bf11138
141 data = file.read(size) 141 data = file.read(size)
142 if opcode in cls._instructions: 142 if opcode in cls._instructions:
143 args = unpack('<%s' % cls._instructions[opcode][0], data) 143 args = unpack('<%s' % cls._instructions[opcode][0], data)
144 else: 144 else:
145 args = (data,) 145 args = (data,)
146 logger.warn('unknown opcode %d', opcode) 146 logger.warning('unknown opcode %d', opcode)
147 stage.script.append((frame, opcode, args)) 147 stage.script.append((frame, opcode, args))
148 148
149 return stage 149 return stage
150 150
151 151