Message232735
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. |
|
Date |
User |
Action |
Args |
2014-12-16 12:02:19 | liu chang | set | recipients:
+ liu chang, gregory.p.smith, lars.gustaebel, larry, serhiy.storchaka |
2014-12-16 12:02:19 | liu chang | set | messageid: <1418731339.2.0.85773236239.issue23056@psf.upfronthosting.co.za> |
2014-12-16 12:02:19 | liu chang | link | issue23056 messages |
2014-12-16 12:02:18 | liu chang | create | |
|