mirror of
https://github.com/python-pillow/Pillow.git
synced 2024-11-11 04:07:21 +03:00
Renamed register_open accept method for consistency
This commit is contained in:
parent
0a47b7306b
commit
c1db69cc3f
|
@ -269,9 +269,9 @@ Image.register_decoder("DXT1", DXT1Decoder)
|
|||
Image.register_decoder("DXT5", DXT5Decoder)
|
||||
|
||||
|
||||
def _validate(prefix):
|
||||
def _accept(prefix):
|
||||
return prefix[:4] == b"DDS "
|
||||
|
||||
|
||||
Image.register_open(DdsImageFile.format, DdsImageFile, _validate)
|
||||
Image.register_open(DdsImageFile.format, DdsImageFile, _accept)
|
||||
Image.register_extension(DdsImageFile.format, ".dds")
|
||||
|
|
Loading…
Reference in New Issue
Block a user