This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author Claudiu.Popa
Recipients Claudiu.Popa
Date 2014-03-09.19:40:14
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1394394015.57.0.429435192094.issue20875@psf.upfronthosting.co.za>
In-reply-to
Content
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
>>>
History
Date User Action Args
2014-03-09 19:40:15Claudiu.Popasetrecipients: + Claudiu.Popa
2014-03-09 19:40:15Claudiu.Popasetmessageid: <1394394015.57.0.429435192094.issue20875@psf.upfronthosting.co.za>
2014-03-09 19:40:15Claudiu.Popalinkissue20875 messages
2014-03-09 19:40:14Claudiu.Popacreate