Skip to content

Commit

Permalink
Format with Black
Browse files Browse the repository at this point in the history
  • Loading branch information
hugovk committed Apr 1, 2019
1 parent c62ccd5 commit 7b0ce05
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/PIL/Image.py
Original file line number Diff line number Diff line change
Expand Up @@ -1128,6 +1128,7 @@ def quantize(self, colors=256, method=None, kmeans=0, palette=None, dither=1):
im = self._new(self.im.quantize(colors, method, kmeans))

from . import ImagePalette

mode = im.im.getpalettemode()
im.palette = ImagePalette.ImagePalette(mode, im.im.getpalette(mode, mode))

Expand Down

0 comments on commit 7b0ce05

Please sign in to comment.