mirror of
https://github.com/python-pillow/Pillow.git
synced 2025-01-14 19:36:38 +03:00
Changed string formatting
Co-Authored-By: Hugo <hugovk@users.noreply.github.com>
This commit is contained in:
parent
77630f000c
commit
4fa3016d67
|
@ -1794,7 +1794,7 @@ class Image(object):
|
||||||
if resample not in (
|
if resample not in (
|
||||||
NEAREST, BILINEAR, BICUBIC, LANCZOS, BOX, HAMMING,
|
NEAREST, BILINEAR, BICUBIC, LANCZOS, BOX, HAMMING,
|
||||||
):
|
):
|
||||||
message = "Unknown resampling filter ("+str(resample)+")."
|
message = "Unknown resampling filter ({}).".format(resample)
|
||||||
|
|
||||||
filters = [filter[1]+" (%d)" % filter[0] for filter in (
|
filters = [filter[1]+" (%d)" % filter[0] for filter in (
|
||||||
(NEAREST, "Image.NEAREST"),
|
(NEAREST, "Image.NEAREST"),
|
||||||
|
@ -2279,7 +2279,7 @@ class Image(object):
|
||||||
BOX: "Image.BOX",
|
BOX: "Image.BOX",
|
||||||
HAMMING: "Image.HAMMING",
|
HAMMING: "Image.HAMMING",
|
||||||
LANCZOS: "Image.LANCZOS/Image.ANTIALIAS"
|
LANCZOS: "Image.LANCZOS/Image.ANTIALIAS"
|
||||||
}[resample]+" (%d) cannot be used." % resample
|
}[resample]+" ({}) cannot be used.".format(resample)
|
||||||
else:
|
else:
|
||||||
message = "Unknown resampling filter ("+str(resample)+")."
|
message = "Unknown resampling filter ("+str(resample)+")."
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user