Update src/PIL/DdsImagePlugin.py

Co-authored-by: Andrew Murray <3112309+radarhere@users.noreply.github.com>
This commit is contained in:
REDxEYE 2023-10-30 13:55:02 +03:00 committed by GitHub
parent 4c635e4ffc
commit cb554c6d0f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -263,7 +263,7 @@ class D3DFMT(IntEnum):
MULTI2_ARGB8 = i32(b"MET1")
# Backward compat layer
# Backward compatibility layer
module = sys.modules[__name__]
for item in DDSD:
setattr(module, "DDSD_" + item.name, item.value)