[New-bugs-announce] [issue20875] Typo in gzip._PaddedFile
Claudiu.Popa
report at bugs.python.org
Sun Mar 9 20:40:15 CET 2014
New submission from Claudiu.Popa:
There's a typo in gzip._PaddedFile.prepend. Here's a snippet to reproduce it.
>>> import gzip
>>> x=gzip.open("a.gz")
>>> x.fileobj.prepend()
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/tank/libs/cpython/Lib/gzip.py", line 99, in prepend
self._buffer = self._buffer[read:] + prepend
NameError: name 'read' is not defined
>>>
----------
components: Library (Lib)
messages: 212978
nosy: Claudiu.Popa
priority: normal
severity: normal
status: open
title: Typo in gzip._PaddedFile
type: behavior
versions: Python 3.4
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue20875>
_______________________________________
More information about the New-bugs-announce
mailing list