diff options
author | João Barbosa <joao.paulo.barbosa@gmail.com> | 2021-11-25 21:36:17 +0000 |
---|---|---|
committer | João Barbosa <joao.paulo.barbosa@gmail.com> | 2021-11-25 21:38:34 +0000 |
commit | 655d52a0cd6b3df738dc9843e25a95b8930b4628 (patch) | |
tree | 48459a6f2d7e2f67e087a1fb23e84895dc5eef51 /contrib | |
parent | 14fe4dbd4c897ccd79fe70c33f75661bbc66ab66 (diff) |
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-x | contrib/macdeploy/gen-sdk | 2 |
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) |