comparison pytouhou/formats/anm0.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 725bd24235a2
children
comparison
equal deleted inserted replaced
763:468dab1dd683 764:d18c0bf11138
186 data = file.read(size) 186 data = file.read(size)
187 if opcode in instructions: 187 if opcode in instructions:
188 args = unpack('<%s' % instructions[opcode][0], data) 188 args = unpack('<%s' % instructions[opcode][0], data)
189 else: 189 else:
190 args = (data,) 190 args = (data,)
191 logger.warn('unknown opcode %d', opcode) 191 logger.warning('unknown opcode %d', opcode)
192 192
193 self.scripts[i].append((time, opcode, args)) 193 self.scripts[i].append((time, opcode, args))
194 if version == 0 and opcode == 0: 194 if version == 0 and opcode == 0:
195 break 195 break
196 196