Skip to content

Commit 30eb414

Browse files
radarhereakx
andcommitted
Use f-string
Co-authored-by: Aarni Koskela <[email protected]>
1 parent f1fef09 commit 30eb414

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

src/PIL/DdsImagePlugin.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -154,9 +154,7 @@ def _open(self):
154154
self._mode = "RGB"
155155
mask_count = 3
156156

157-
masks = struct.unpack(
158-
"<" + str(mask_count) + "I", header.read(mask_count * 4)
159-
)
157+
masks = struct.unpack(f"<{mask_count}I", header.read(mask_count * 4))
160158
self.tile = [("dds_rgb", (0, 0) + self.size, 0, (bitcount, masks))]
161159
elif pfflags & DDPF_PALETTEINDEXED8:
162160
self._mode = "P"

0 commit comments

Comments
 (0)