Use f-string

This commit is contained in:
Hugo van Kemenade 2022-06-15 21:43:18 +03:00
parent 983a6139d5
commit 959e576dd2

View File

@ -377,7 +377,7 @@ def profileToProfile(
raise PyCMSError("renderingIntent must be an integer between 0 and 3")
if not isinstance(flags, int) or not (0 <= flags <= _MAX_FLAG):
raise PyCMSError("flags must be an integer between 0 and %s" % _MAX_FLAG)
raise PyCMSError(f"flags must be an integer between 0 and {_MAX_FLAG}")
try:
if not isinstance(inputProfile, ImageCmsProfile):