This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author GotenXiao
Recipients GotenXiao
Date 2008-03-07.11:17:50
SpamBayes Score 0.024199083
Marked as misclassified No
Message-id <1204888671.17.0.924407894486.issue2251@psf.upfronthosting.co.za>
In-reply-to
Content
Steps to reproduce:

Create test.py with the following contents:
tar = tarfile.open("test.tar", "w")
tar.addfile("testdir")
tar.close()

Run the following commands (or equivalent on alternative platforms):
mkdir testdir
touch testdir/testfile
python test.py

Resultant output:
Traceback (most recent call last):
  File "test.py", line 4, in <module>
    tar.addfile("testdir")
  File "/usr/lib/python2.5/tarfile.py", line 1492, in addfile
    buf = tarinfo.tobuf(self.posix)
AttributeError: 'str' object has no attribute 'tobuf'

Tested on Python 2.5.1 and 2.5.2 from slackware-current packages.
History
Date User Action Args
2008-03-07 11:17:51GotenXiaosetspambayes_score: 0.0241991 -> 0.024199083
recipients: + GotenXiao
2008-03-07 11:17:51GotenXiaosetspambayes_score: 0.0241991 -> 0.0241991
messageid: <1204888671.17.0.924407894486.issue2251@psf.upfronthosting.co.za>
2008-03-07 11:17:50GotenXiaolinkissue2251 messages
2008-03-07 11:17:50GotenXiaocreate