Fix deprecation warning

Co-authored-by: Andrew Murray <3112309+radarhere@users.noreply.github.com>
This commit is contained in:
Hugo van Kemenade 2022-04-15 12:08:15 +03:00 committed by GitHub
parent c9acb9b387
commit 136d1a89df
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -68,7 +68,7 @@ def __getattr__(name):
"ANTIALIAS": "LANCZOS",
}
if name in old_resampling:
deprecate(name, 10, old_resampling[name])
deprecate(name, 10, f"Resampling.{old_resampling[name]}")
return Resampling[old_resampling[name]]
for enum in (Transpose, Transform, Resampling, Dither, Palette, Quantize):
if name in enum.__members__: