New submission from Thom Wiggers:
The tarfile.is_tarfile() function only supports opening from paths. However,
the `Tarfile` class also supports opening from `fileobj`s. It would be useful
if the is_tarfile function would also accept those.
For reference, this is the current implementation:
https://github.com/python/cpython/blob/fcc3915a266b6cd220483c7020de0d71e293b2cb/Lib/tarfile.py#L2432
--
components: Library (Lib)
messages: 286869
nosy: twiggers
priority: normal
severity: normal
status: open
title: Allow to pass fileobj to is_tarfile
type: enhancement
___
Python tracker
<http://bugs.python.org/issue29435>
___
___
Python-bugs-list mailing list
Unsubscribe:
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com