feat: deprecation warning
This commit is contained in:
@@ -172,6 +172,10 @@ class IcnsFile:
|
|||||||
# Nested icns files must omit the icns header
|
# Nested icns files must omit the icns header
|
||||||
if is_icns and data[:4] == b'icns':
|
if is_icns and data[:4] == b'icns':
|
||||||
data = data[8:]
|
data = data[8:]
|
||||||
|
if key in ('icp4', 'icp5'):
|
||||||
|
iType = IcnsType.get(key)
|
||||||
|
print('Warning: deprecated "{}"({}) use argb instead'.format(
|
||||||
|
str(key), iType.filename(size_only=True)), file=stderr)
|
||||||
self.media[key] = data
|
self.media[key] = data
|
||||||
|
|
||||||
def remove_media(self, key: IcnsType.Media.KeyT) -> bool:
|
def remove_media(self, key: IcnsType.Media.KeyT) -> bool:
|
||||||
|
|||||||
Reference in New Issue
Block a user