Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Don't reassign crc on ChunkStream close #6627

Merged
merged 2 commits into from Oct 13, 2022
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
4 changes: 2 additions & 2 deletions src/PIL/PngImagePlugin.py
Expand Up @@ -189,7 +189,7 @@ def __exit__(self, *args):
self.close()

def close(self):
self.queue = self.crc = self.fp = None
self.queue = self.fp = None

def push(self, cid, pos, length):

Expand Down Expand Up @@ -224,7 +224,7 @@ def crc(self, cid, data):
) from e

def crc_skip(self, cid, data):
"""Read checksum. Used if the C module is not present"""
"""Read checksum"""

self.fp.read(4)

Expand Down