Mercurial > touhou
comparison pytouhou/formats/pbg3.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 |
---|---|
149 value = 0 | 149 value = 0 |
150 for c in self.bitstream.io.read(compressed_size): | 150 for c in self.bitstream.io.read(compressed_size): |
151 value += c | 151 value += c |
152 value &= 0xFFFFFFFF | 152 value &= 0xFFFFFFFF |
153 if value != checksum: | 153 if value != checksum: |
154 logger.warn('corrupted data!') | 154 logger.warning('corrupted data!') |
155 return BytesIO(data) | 155 return BytesIO(data) |