[issue21996] gettarinfo method does not handle files without text string names

2016-02-19 Thread Martin Panter
Changes by Martin Panter : -- resolution: -> fixed stage: needs patch -> resolved status: open -> closed versions: +Python 3.6 -Python 3.4 ___ Python tracker ___ ___

[issue21996] gettarinfo method does not handle files without text string names

2016-02-19 Thread Roundup Robot
Roundup Robot added the comment: New changeset 94a94deaf06a by Martin Panter in branch '3.5': Issues #22468, #21996, #22208: Clarify gettarinfo() and TarInfo usage https://hg.python.org/cpython/rev/94a94deaf06a New changeset 9d5217aaea13 by Martin Panter in branch '2.7': Issues #22468, #21996, #

[issue21996] gettarinfo method does not handle files without text string names

2016-02-09 Thread Martin Panter
Changes by Martin Panter : -- dependencies: +Tarfile using fstat on GZip file object ___ Python tracker ___ ___ Python-bugs-list maili

[issue21996] gettarinfo method does not handle files without text string names

2015-04-19 Thread Martin Panter
Martin Panter added the comment: Over in Issue 22468, I posted a documentation patch which includes wording to address this bug. -- ___ Python tracker ___ __

[issue21996] gettarinfo method does not handle files without text string names

2014-07-19 Thread R. David Murray
R. David Murray added the comment: Agreed, the documentation should be modified to say "(using os.fstat on its file descriptor, and its 'name' attribute if arcname is not specified"). -- assignee: -> docs@python components: +Documentation nosy: +docs@python, r.david.murray stage: -> n

[issue21996] gettarinfo method does not handle files without text string names

2014-07-17 Thread Berker Peksag
Changes by Berker Peksag : -- nosy: +serhiy.storchaka versions: +Python 3.5 ___ Python tracker ___ ___ Python-bugs-list mailing list U

[issue21996] gettarinfo method does not handle files without text string names

2014-07-17 Thread Martin Panter
New submission from Martin Panter: It looks like if you pass a “fileobj” argument to “gettarinfo”, it assumes it can use the “name” as a text string. >>> import tarfile >>> with tarfile.open("/dev/null", "w") as tar, open("/bin/sh", "rb") as file: >>> tar.gettarinfo(fileobj=file) ... >>> wit