Mercurial > touhou
comparison pytouhou/vm/msgrunner.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 | e15672733c93 |
children |
comparison
equal
deleted
inserted
replaced
763:468dab1dd683 | 764:d18c0bf11138 |
---|---|
58 | 58 |
59 if frame == self.frame: | 59 if frame == self.frame: |
60 try: | 60 try: |
61 callback = self.handlers[instr_type] | 61 callback = self.handlers[instr_type] |
62 except KeyError: | 62 except KeyError: |
63 logger.warn('unhandled msg opcode %d (args: %r)', instr_type, args) | 63 logger.warning('unhandled msg opcode %d (args: %r)', instr_type, args) |
64 else: | 64 else: |
65 callback(self, *args) | 65 callback(self, *args) |
66 | 66 |
67 if not self.frozen: | 67 if not self.frozen: |
68 if self.sleep_time > 0: | 68 if self.sleep_time > 0: |