We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 208e9b5 commit e0da1a6Copy full SHA for e0da1a6
src/PIL/WalImageFile.py
@@ -49,8 +49,7 @@ def _open(self) -> None:
49
50
# strings are null-terminated
51
self.info["name"] = header[:32].split(b"\0", 1)[0]
52
- next_name = header[56 : 56 + 32].split(b"\0", 1)[0]
53
- if next_name:
+ if next_name := header[56 : 56 + 32].split(b"\0", 1)[0]:
54
self.info["next_name"] = next_name
55
56
def load(self) -> Image.core.PixelAccess | None:
0 commit comments