Skip to content

Commit 476b122

Browse files
committed
Simplified code
1 parent ba04d58 commit 476b122

1 file changed

Lines changed: 2 additions & 3 deletions

File tree

src/PIL/CurImagePlugin.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
#
1818
from __future__ import annotations
1919

20-
from . import BmpImagePlugin, Image, ImageFile
20+
from . import BmpImagePlugin, Image
2121
from ._binary import i16le as i16
2222
from ._binary import i32le as i32
2323

@@ -63,8 +63,7 @@ def _open(self) -> None:
6363

6464
# patch up the bitmap height
6565
self._size = self.size[0], self.size[1] // 2
66-
d, e, o, a = self.tile[0]
67-
self.tile[0] = ImageFile._Tile(d, (0, 0) + self.size, o, a)
66+
self.tile = [self.tile[0]._replace(extents=(0, 0) + self.size)]
6867

6968

7069
#

0 commit comments

Comments
 (0)