Skip to content

Commit 80209dc

Browse files
authored
Add files via upload
1 parent ce4bbda commit 80209dc

1 file changed

Lines changed: 9 additions & 1 deletion

File tree

pyarchivefile.py

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -610,7 +610,7 @@ def _get(section_dict, key, default=None):
610610
__version_date__ = str(__version_date_info__[0]) + "." + str(
611611
__version_date_info__[1]).zfill(2) + "." + str(__version_date_info__[2]).zfill(2)
612612
__revision__ = __version_info__[3]
613-
__revision_id__ = "$Id: 20710d76752a16aa2f472536ee2954c0cd49389a $"
613+
__revision_id__ = "$Id: 2855200b33e29201ad0c5e5fc6da5347b404c16c $"
614614
if(__version_info__[4] is not None):
615615
__version_date_plusrc__ = __version_date__ + \
616616
"-" + str(__version_date_info__[4])
@@ -9031,6 +9031,14 @@ def UncompressFileAlt(fp, formatspecs=__file_format_multi_dict__, filestart=0,
90319031
if not hasattr(fp, "read"):
90329032
return False
90339033

9034+
# If caller already gave us a FileLikeAdapter => honor it and return it.
9035+
if isinstance(fp, FileLikeAdapter):
9036+
try:
9037+
fp.write_through = True
9038+
except Exception:
9039+
pass
9040+
return fp
9041+
90349042
# Detect format on the fileobj at filestart
90359043
compresscheck = CheckCompressionType(fp, formatspecs, filestart, False)
90369044
if IsNestedDict(formatspecs) and compresscheck in formatspecs:

0 commit comments

Comments
 (0)