bpo-29435: Allow is_tarfile to take a filelike obj (GH-18090)

`is_tarfile()` now supports `name` being a file or file-like object.
This commit is contained in:
William Woodruff 2020-01-22 21:24:16 -05:00 committed by Ethan Furman
parent 41f0ef6abb
commit dd754caf14
5 changed files with 45 additions and 2 deletions

View file

@ -1856,6 +1856,7 @@ Klaus-Juergen Wolf
Dan Wolfe
Richard Wolff
Adam Woodbeck
William Woodruff
Steven Work
Gordon Worley
Darren Worrall

View file

@ -0,0 +1,2 @@
Allow :func:`tarfile.is_tarfile` to be used with file and file-like
objects, like :func:`zipfile.is_zipfile`. Patch by William Woodruff.