]> granicus.if.org Git - python/commit
Issues #22468, #21996, #22208: Clarify gettarinfo() and TarInfo usage
authorMartin Panter <vadmium+py@gmail.com>
Fri, 19 Feb 2016 23:34:56 +0000 (23:34 +0000)
committerMartin Panter <vadmium+py@gmail.com>
Fri, 19 Feb 2016 23:34:56 +0000 (23:34 +0000)
commit59b9a16e72757e1b6266b251f8b12dd9bf69d603
tree937957b4bdbaffec5e8c54fe0a2ed26dcf750ac0
parentd6dd0e65601355bfff52c85b3ac7800ed7edffb5
Issues #22468, #21996, #22208: Clarify gettarinfo() and TarInfo usage

* Make it more obvious gettarinfo() is based on stat(), and that non-ordinary
  files may need special care
* Filename taken from fileobj.name; suggest dummy arcname as a workaround
* Indicate TarInfo may be used directly, not just via gettarinfo()
Doc/library/tarfile.rst
Lib/tarfile.py