aboutsummaryrefslogtreecommitdiff
path: root/contrib
diff options
context:
space:
mode:
authorJoão Barbosa <joao.paulo.barbosa@gmail.com>2021-11-25 21:36:17 +0000
committerJoão Barbosa <joao.paulo.barbosa@gmail.com>2021-11-25 21:38:34 +0000
commit655d52a0cd6b3df738dc9843e25a95b8930b4628 (patch)
tree48459a6f2d7e2f67e087a1fb23e84895dc5eef51 /contrib
parent14fe4dbd4c897ccd79fe70c33f75661bbc66ab66 (diff)
downloadbitcoin-655d52a0cd6b3df738dc9843e25a95b8930b4628.tar.xz
contrib: Specify wb mode when creating mac sdk
Fix the warning: ``` ./contrib/macdeploy/gen-sdk:84: FutureWarning: GzipFile was opened for writing, but this will change in future Python releases. Specify the mode argument for opening it for writing. ```
Diffstat (limited to 'contrib')
-rwxr-xr-xcontrib/macdeploy/gen-sdk2
1 files changed, 1 insertions, 1 deletions
diff --git a/contrib/macdeploy/gen-sdk b/contrib/macdeploy/gen-sdk
index 457d8f5e64..ebef1d2db0 100755
--- a/contrib/macdeploy/gen-sdk
+++ b/contrib/macdeploy/gen-sdk
@@ -81,7 +81,7 @@ def run():
print("Creating output .tar.gz file...")
with out_sdktgz_path.open("wb") as fp:
- with gzip.GzipFile(fileobj=fp, compresslevel=9, mtime=0) as gzf:
+ with gzip.GzipFile(fileobj=fp, mode='wb', compresslevel=9, mtime=0) as gzf:
with tarfile.open(mode="w", fileobj=gzf) as tarfp:
print("Adding MacOSX SDK {} files...".format(sdk_version))
tarfp_add_with_base_change(tarfp, sdk_dir, out_name)