mirror of
https://github.com/python/cpython.git
synced 2025-08-04 00:48:58 +00:00
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:
parent
41f0ef6abb
commit
dd754caf14
5 changed files with 45 additions and 2 deletions
|
@ -1856,6 +1856,7 @@ Klaus-Juergen Wolf
|
|||
Dan Wolfe
|
||||
Richard Wolff
|
||||
Adam Woodbeck
|
||||
William Woodruff
|
||||
Steven Work
|
||||
Gordon Worley
|
||||
Darren Worrall
|
||||
|
|
|
@ -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.
|
Loading…
Add table
Add a link
Reference in a new issue