mirror of
https://github.com/python-pillow/Pillow.git
synced 2024-11-13 13:16:52 +03:00
Removed else
Co-authored-by: Hugo van Kemenade <1324225+hugovk@users.noreply.github.com>
This commit is contained in:
parent
19a6edeecc
commit
68db96981c
|
@ -2526,8 +2526,7 @@ class Image:
|
||||||
self.load()
|
self.load()
|
||||||
if self.im.bands == 1:
|
if self.im.bands == 1:
|
||||||
return (self.copy(),)
|
return (self.copy(),)
|
||||||
else:
|
return tuple(map(self._new, self.im.split()))
|
||||||
return tuple(map(self._new, self.im.split()))
|
|
||||||
|
|
||||||
def getchannel(self, channel):
|
def getchannel(self, channel):
|
||||||
"""
|
"""
|
||||||
|
|
Loading…
Reference in New Issue
Block a user