[Patches] [ python-Patches-1504073 ] Patch for 1496501 tarfile opener order

SourceForge.net noreply at sourceforge.net
Sat Jun 10 19:45:15 CEST 2006


Patches item #1504073, was opened at 2006-06-10 13:45
Message generated for change (Tracker Item Submitted) made by Item Submitter
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=305470&aid=1504073&group_id=5470

Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: None
Group: None
Status: Open
Resolution: None
Priority: 5
Submitted By: Jack Diederich (jackdied)
Assigned to: Nobody/Anonymous (nobody)
Summary: Patch for 1496501 tarfile opener order

Initial Comment:
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.


----------------------------------------------------------------------

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=305470&aid=1504073&group_id=5470


More information about the Patches mailing list