diff options
author | Hauke Mehrtens <hauke@hauke-m.de> | 2021-05-04 00:34:16 +0200 |
---|---|---|
committer | Hauke Mehrtens <hauke@hauke-m.de> | 2021-05-04 00:46:48 +0200 |
commit | 7b5533e18905ba3ddbe11f4460ae9122ad00efaa (patch) | |
tree | 57ecc208b29ff51bf0647606bd46ff633422bb53 | |
parent | 88fc8ee70f8a57ac803e629d67d61f8b5b2f1bd2 (diff) | |
download | backports-7b5533e18905ba3ddbe11f4460ae9122ad00efaa.tar.gz |
backports: Explicitly open files in binary modev5.10.34-1
This should fix some problems seen when using python 3.
Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
-rwxr-xr-x | gentree.py | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -416,7 +416,7 @@ def create_tar_and_gz(tar_name, dir_to_tar): tar.add(dir_to_tar, basename) tar.close() - tar_file = open(tar_name, "r") + tar_file = open(tar_name, "rb") gz_file = gzip.GzipFile(tar_name + ".gz", 'wb') gz_file.write(tar_file.read()) |