[Patches] [ python-Patches-1652681 ] tarfile append behavior
SourceForge.net
noreply at sourceforge.net
Tue Feb 6 19:46:55 CET 2007
Patches item #1652681, was opened at 2007-02-05 21:15
Message generated for change (Comment added) made by gustaebel
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=305470&aid=1652681&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: Library (Lib)
Group: Python 2.5
>Status: Closed
>Resolution: Accepted
Priority: 5
Private: No
Submitted By: Witten (herrwitten)
Assigned to: Lars Gustäbel (gustaebel)
Summary: tarfile append behavior
Initial Comment:
The builtin file object has the following behavior for the appending ('a') mode:
'The file will be created if it doesn't exist when opened for writing or
appending'
Currently, the file must already exist and it must not be an empty file.
This patch achieves the file object's behavior with a small one-line addition.
If this patch be used, please add a reference to 'herrwitten' in the log.
----------------------------------------------------------------------
>Comment By: Lars Gustäbel (gustaebel)
Date: 2007-02-06 19:46
Message:
Logged In: YES
user_id=642936
Originator: NO
Thank you for the idea. As your patch only implemented appending
to empty files, I added support for creating files if they don't
exist. I added a testcase and adjusted the docs as well.
Checked in the trunk as rev. 53648, so it will appear in 2.6.
----------------------------------------------------------------------
Comment By: Witten (herrwitten)
Date: 2007-02-06 00:33
Message:
Logged In: YES
user_id=1595909
Originator: YES
I fixed a bad patch with some personal information and bad path names by
using 'svn diff' instead.
File Added: tarfile.py.diff
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=305470&aid=1652681&group_id=5470
More information about the Patches
mailing list