Author jackdied
Recipients
Date 2006-06-10.17:45:15
SpamBayes Score
Marked as misclassified
Message-id
In-reply-to
Content
when passing a fileobj into tarfile.open() without
specifying the type open() will try openers in their
dict key order from TarFile.OPEN_METH.  This can fail
if the order changes.

This patch adds a tell() and seek() on failure of
openers.  fileobjs must already support these methods
to work so this makes no new requirements.

OpenOrderTest uses a dict-alike with shuffled keys to
try and provoke the wrong orders for openers.

Let me know if it looks good and I'll check it in.
History
Date User Action Args
2007-08-23 15:52:46adminlinkissue1504073 messages
2007-08-23 15:52:46admincreate