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

SourceForge.net noreply at sourceforge.net
Thu Dec 21 09:51:53 CET 2006


Patches item #1504073, was opened at 2006-06-10 19:45
Message generated for change (Settings changed) made by gustaebel
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
Private: No
Submitted By: Jack Diederich (jackdied)
>Assigned to: Lars Gustäbel (gustaebel)
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