Clarify apply_transparency() docstring

This commit is contained in:
Andrew Murray 2022-12-12 06:36:27 +11:00
parent 0d6440d9f2
commit f6f622dcee

View File

@ -1482,7 +1482,8 @@ class Image:
def apply_transparency(self):
"""
If a P mode image has a "transparency" key in the info dictionary,
remove the key and apply the transparency to the palette instead.
remove the key and instead apply the transparency to the palette.
Otherwise, the image is unchanged.
"""
if self.mode != "P" or "transparency" not in self.info:
return