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 liu chang
Recipients gregory.p.smith, larry, lars.gustaebel, liu chang, serhiy.storchaka
Date 2014-12-16.12:02:18
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1418731339.2.0.85773236239.issue23056@psf.upfronthosting.co.za>
In-reply-to
Content
2232     def next(self):
2233         """Return the next member of the archive as a TarInfo object, when
2234            TarFile is opened for reading. Return None if there is no more
2235            available.
2236         """
2237         self._check("ra")
2238         if self.firstmember is not None:
2239             m = self.firstmember
2240             self.firstmember = None
2241             return m
2242 
2243         # Read the next block.
2244         self.fileobj.seek(self.offset)
2245         tarinfo = None

raise a StreamError at #2244, It should catch this Error and return None. I would like to post a patch to fix it.
History
Date User Action Args
2014-12-16 12:02:19liu changsetrecipients: + liu chang, gregory.p.smith, lars.gustaebel, larry, serhiy.storchaka
2014-12-16 12:02:19liu changsetmessageid: <1418731339.2.0.85773236239.issue23056@psf.upfronthosting.co.za>
2014-12-16 12:02:19liu changlinkissue23056 messages
2014-12-16 12:02:18liu changcreate