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 BreamoreBoy
Recipients BreamoreBoy, benjamin.peterson, brian.curtin, hynek, pitrou, serhiy.storchaka, stutzbach, tim.golden
Date 2014-01-24.19:51:42
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1390593103.18.0.488553115308.issue20384@psf.upfronthosting.co.za>
In-reply-to
Content
Two attempts, one with the pipe "|" symbol in the mode, one without.

>>> import tarfile; tarfile.open('non-existing', 'r|')
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "C:\Python33\lib\tarfile.py", line 1594, in open
    stream = _Stream(name, filemode, comptype, fileobj, bufsize)
  File "C:\Python33\lib\tarfile.py", line 362, in __init__
    fileobj = _LowLevelFile(name, mode)
  File "C:\Python33\lib\tarfile.py", line 335, in __init__
    self.fd = os.open(name, mode, 0o666)
FileNotFoundError: [Errno 2] No such file or directory

>>> import tarfile; tarfile.open('non-existing', 'r')
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "C:\Python33\lib\tarfile.py", line 1566, in open
    return func(name, "r", fileobj, **kwargs)
  File "C:\Python33\lib\tarfile.py", line 1614, in taropen
    return cls(name, mode, fileobj, **kwargs)
  File "C:\Python33\lib\tarfile.py", line 1442, in __init__
    fileobj = bltn_open(name, self._mode)
FileNotFoundError: [Errno 2] No such file or directory: 'non-existing'
History
Date User Action Args
2014-01-24 19:51:43BreamoreBoysetrecipients: + BreamoreBoy, pitrou, tim.golden, benjamin.peterson, stutzbach, brian.curtin, hynek, serhiy.storchaka
2014-01-24 19:51:43BreamoreBoysetmessageid: <1390593103.18.0.488553115308.issue20384@psf.upfronthosting.co.za>
2014-01-24 19:51:43BreamoreBoylinkissue20384 messages
2014-01-24 19:51:42BreamoreBoycreate