mirror of
https://github.com/python-pillow/Pillow.git
synced 2025-01-26 17:24:31 +03:00
update repr method
This commit is contained in:
parent
75c76d91e1
commit
1a371e572c
|
@ -443,12 +443,14 @@ class Color3DLUT(MultibandFilter):
|
|||
_copy_table=False)
|
||||
|
||||
def __repr__(self):
|
||||
r = ["{0} from {1}".format(self.__class__.__name__,
|
||||
self.table.__class__.__name__)]
|
||||
r.append("size={0}x{1}x{2}".format(*self.size))
|
||||
r.append("channels={0}".format(self.channels))
|
||||
r = [
|
||||
"{} from {}".format(self.__class__.__name__,
|
||||
self.table.__class__.__name__),
|
||||
"size={:d}x{:d}x{:d}".format(*self.size),
|
||||
"channels={:d}".format(self.channels),
|
||||
]
|
||||
if self.mode:
|
||||
r.append("target_mode={0}".format(self.mode))
|
||||
r.append("target_mode={}".format(self.mode))
|
||||
return "<{}>".format(" ".join(r))
|
||||
|
||||
def filter(self, image):
|
||||
|
|
Loading…
Reference in New Issue
Block a user