Skip to content

Commit b0408be

Browse files
authored
Merge pull request #276 from dandyrilla/remove-unnecessary-unpacking
Remove unnecessary unpacking
2 parents 1d0982c + b9682cd commit b0408be

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

openslide/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -145,7 +145,7 @@ def get_thumbnail(self, size):
145145
"""Return a PIL.Image containing an RGB thumbnail of the image.
146146
147147
size: the maximum size of the thumbnail."""
148-
downsample = max(*(dim / thumb for dim, thumb in zip(self.dimensions, size)))
148+
downsample = max(dim / thumb for dim, thumb in zip(self.dimensions, size))
149149
level = self.get_best_level_for_downsample(downsample)
150150
tile = self.read_region((0, 0), level, self.level_dimensions[level])
151151
# Apply on solid background

0 commit comments

Comments
 (0)