diff 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
line wrap: on
line diff
--- a/pytouhou/formats/pbg3.py
+++ b/pytouhou/formats/pbg3.py
@@ -151,5 +151,5 @@ class PBG3:
                 value += c
                 value &= 0xFFFFFFFF
             if value != checksum:
-                logger.warn('corrupted data!')
+                logger.warning('corrupted data!')
         return BytesIO(data)