From: Silas Sewell Date: Tue, 18 Sep 2018 17:00:05 +0000 (-0400) Subject: bpo-34472: Add data descriptor signature to zipfile (GH-8871) X-Git-Tag: v3.8.0a1~944 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=4ba3b50bfe6d50cd82d208023ea23e203ab50589;p=python bpo-34472: Add data descriptor signature to zipfile (GH-8871) This makes streamed zips compatible with MacOS Archive Utility and other applications. --- diff --git a/Lib/zipfile.py b/Lib/zipfile.py index 89df90b252..4a6b40ee44 100644 --- a/Lib/zipfile.py +++ b/Lib/zipfile.py @@ -159,6 +159,8 @@ _CD64_NUMBER_ENTRIES_TOTAL = 7 _CD64_DIRECTORY_SIZE = 8 _CD64_OFFSET_START_CENTDIR = 9 +_DD_SIGNATURE = 0x08074b50 + _EXTRA_FIELD_STRUCT = struct.Struct('