mirror of
https://github.com/python-pillow/Pillow.git
synced 2025-08-03 03:50:09 +03:00
Remove n_colors property
This commit is contained in:
parent
b471158498
commit
0d00d08b15
|
@ -68,4 +68,3 @@ def test_n_colors():
|
|||
|
||||
palette, _ = palette_file.getpalette()
|
||||
assert len(palette) == 24
|
||||
assert palette_file.n_colors == 8
|
||||
|
|
|
@ -67,7 +67,3 @@ class GimpPaletteFile:
|
|||
def getpalette(self):
|
||||
|
||||
return self.palette, self.rawmode
|
||||
|
||||
@property
|
||||
def n_colors(self):
|
||||
return len(self.palette) / 3
|
||||
|
|
Loading…
Reference in New Issue
Block a user