tarfile : read from a socket?
random832 at fastmail.com
Thu Feb 11 16:23:52 EST 2016
On Thu, Feb 11, 2016, at 11:41, Ulli Horlacher wrote:
> When I use:
> for member in taro.getmembers():
> print('extracting "%s"' % member.name)
> I get the error:
> File "/usr/lib/python2.7/tarfile.py", line 556, in seek
> raise StreamError("seeking backwards is not allowed")
> Of course, a stream is not seekable.
> Any ideas?
member = taro.next()
if member is None: break
print('extracting "%s"' % member.name)
More information about the Python-list