comparison pytouhou/resource/loader.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 79c3f782dd41
comparison
equal deleted inserted replaced
763:468dab1dd683 764:d18c0bf11138
126 return archive.get_file(name) 126 return archive.get_file(name)
127 127
128 128
129 def get_anm(self, name): 129 def get_anm(self, name):
130 if name in self.loaded_anms: 130 if name in self.loaded_anms:
131 logger.warn('ANM0 %s already loaded', name) 131 logger.warning('ANM0 %s already loaded', name)
132 file = self.get_file(name) 132 file = self.get_file(name)
133 anm = ANM0.read(file) 133 anm = ANM0.read(file)
134 self.instanced_anms[name] = anm 134 self.instanced_anms[name] = anm
135 self.loaded_anms.append(name) 135 self.loaded_anms.append(name)
136 return anm 136 return anm