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