Mercurial > touhou
diff pytouhou/vm/eclrunner.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 |
line wrap: on
line diff
--- a/pytouhou/vm/eclrunner.py +++ b/pytouhou/vm/eclrunner.py @@ -1096,7 +1096,7 @@ class ECLRunner(metaclass=MetaRegistry): self.variables[6] = self._game.prng.rand_double() * (self._game.width - 64.) + 32. self.variables[7] = self._game.prng.rand_double() * (self._game.width / 2. - 64.) + 32. else: - logger.warn("Unimplemented special function %d!", function) + logger.warning("Unimplemented special function %d!", function) @instruction(123)