Mercurial > touhou
comparison 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 |
comparison
equal
deleted
inserted
replaced
763:468dab1dd683 | 764:d18c0bf11138 |
---|---|
68 args = unpack(fmt, data) | 68 args = unpack(fmt, data) |
69 if fmt.endswith('s'): | 69 if fmt.endswith('s'): |
70 args = args[:-1] + (args[-1].decode('shift_jis'),) | 70 args = args[:-1] + (args[-1].decode('shift_jis'),) |
71 else: | 71 else: |
72 args = (data, ) | 72 args = (data, ) |
73 logger.warn('unknown msg opcode %d', opcode) | 73 logger.warning('unknown msg opcode %d', opcode) |
74 | 74 |
75 msg.msgs[i].append((time, opcode, args)) | 75 msg.msgs[i].append((time, opcode, args)) |
76 | 76 |
77 | 77 |
78 return msg | 78 return msg |