Skip to content

Commit

Permalink
Use f-string
Browse files Browse the repository at this point in the history
Co-authored-by: Aarni Koskela <akx@iki.fi>
  • Loading branch information
radarhere and akx committed Dec 1, 2023
1 parent f1fef09 commit 62d128b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/PIL/DdsImagePlugin.py
Original file line number Diff line number Diff line change
Expand Up @@ -155,7 +155,7 @@ def _open(self):
mask_count = 3

masks = struct.unpack(
"<" + str(mask_count) + "I", header.read(mask_count * 4)
f"<{mask_count}I", header.read(mask_count * 4)
)
self.tile = [("dds_rgb", (0, 0) + self.size, 0, (bitcount, masks))]
elif pfflags & DDPF_PALETTEINDEXED8:
Expand Down

0 comments on commit 62d128b

Please sign in to comment.