[issue1529] Error when passing a file object to tarfile.open()

2007-11-30 Thread Amaury Forgeot d'Arc
Amaury Forgeot d'Arc added the comment: The fix is already included in the future 2.5.2 release. -- status: open -> closed __ Tracker <[EMAIL PROTECTED]> __ ___

[issue1529] Error when passing a file object to tarfile.open()

2007-11-30 Thread George Notaras
George Notaras added the comment: Indeed, I have downloaded the latest tarfile module from svn and it works as expected. I should have done this in the first place. __ Tracker <[EMAIL PROTECTED]> _

[issue1529] Error when passing a file object to tarfile.open()

2007-11-30 Thread Amaury Forgeot d'Arc
Amaury Forgeot d'Arc added the comment: This problem was fixed in r57617. Can you check with a more recent build? -- nosy: +amaury.forgeotdarc resolution: -> works for me __ Tracker <[EMAIL PROTECTED]> _

[issue1529] Error when passing a file object to tarfile.open()

2007-11-30 Thread George Notaras
New submission from George Notaras: Assume a healthy uncompressed tar file: a.tar When trying to open the tarfile using a fileobject, there is always an exception: >>> f_raw = open("a.tar", "rb") >>> import tarfile >>> f_tar = tarfile.open(mode="r:", fileobj=f_raw) Traceback (most recent call l