mirror of
https://github.com/python/cpython.git
synced 2025-11-25 04:34:37 +00:00
Issue #20875: Prevent possible gzip "'read' is not defined" NameError.
Patch by Claudiu Popa.
This commit is contained in:
parent
5e572fd490
commit
6120739f0c
3 changed files with 11 additions and 1 deletions
|
|
@ -99,7 +99,7 @@ class _PaddedFile:
|
|||
self._read -= len(prepend)
|
||||
return
|
||||
else:
|
||||
self._buffer = self._buffer[read:] + prepend
|
||||
self._buffer = self._buffer[self._read:] + prepend
|
||||
self._length = len(self._buffer)
|
||||
self._read = 0
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue