From b9682cd0483a784a71a04bee98da2f2bed7fc2af Mon Sep 17 00:00:00 2001 From: Sukjun Kim Date: Mon, 2 Sep 2024 23:11:27 +0900 Subject: [PATCH] Remove unnecessary unpacking Signed-off-by: Sukjun Kim --- openslide/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/openslide/__init__.py b/openslide/__init__.py index 8834578d..61e60685 100644 --- a/openslide/__init__.py +++ b/openslide/__init__.py @@ -145,7 +145,7 @@ def get_thumbnail(self, size): """Return a PIL.Image containing an RGB thumbnail of the image. size: the maximum size of the thumbnail.""" - downsample = max(*(dim / thumb for dim, thumb in zip(self.dimensions, size))) + downsample = max(dim / thumb for dim, thumb in zip(self.dimensions, size)) level = self.get_best_level_for_downsample(downsample) tile = self.read_region((0, 0), level, self.level_dimensions[level]) # Apply on solid background