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 GeorgeNotaras
Recipients GeorgeNotaras
Date 2007-11-30.21:16:51
SpamBayes Score 0.10893116
Marked as misclassified No
Message-id <1196457412.25.0.63807751084.issue1529@psf.upfronthosting.co.za>
In-reply-to
Content
Assume a healthy uncompressed tar file: a.tar

When trying to open the tarfile using a fileobject, there is always an
exception:

>>> f_raw = open("a.tar", "rb")
>>> import tarfile
>>> f_tar = tarfile.open(mode="r:", fileobj=f_raw)
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/usr/lib/python2.5/tarfile.py", line 1157, in open
    return func(name, filemode, fileobj)
  File "/usr/lib/python2.5/tarfile.py", line 1183, in taropen
    return cls(name, mode, fileobj)
  File "/usr/lib/python2.5/tarfile.py", line 1047, in __init__
    self.name = os.path.abspath(name)
  File "/usr/lib/python2.5/posixpath.py", line 402, in abspath
    if not isabs(path):
  File "/usr/lib/python2.5/posixpath.py", line 49, in isabs
    return s.startswith('/')
AttributeError: 'NoneType' object has no attribute 'startswith'
History
Date User Action Args
2007-11-30 21:16:52GeorgeNotarassetspambayes_score: 0.108931 -> 0.10893116
recipients: + GeorgeNotaras
2007-11-30 21:16:52GeorgeNotarassetspambayes_score: 0.108931 -> 0.108931
messageid: <1196457412.25.0.63807751084.issue1529@psf.upfronthosting.co.za>
2007-11-30 21:16:52GeorgeNotaraslinkissue1529 messages
2007-11-30 21:16:51GeorgeNotarascreate