From: Marcin Krol Date: Sun, 2 May 2021 13:24:24 +0000 (+0200) Subject: - mode wb not allowed in os.popen X-Git-Url: https://git.tld-linux.org/?a=commitdiff_plain;h=4c1b8295857d2b8d2b2975c4030d61c3f1b61bcb;p=tld-builder.git - mode wb not allowed in os.popen --- diff --git a/TLD_Builder/rpm_builder.py b/TLD_Builder/rpm_builder.py index 666f7d6..d8fdb9c 100644 --- a/TLD_Builder/rpm_builder.py +++ b/TLD_Builder/rpm_builder.py @@ -125,7 +125,7 @@ def fetch_src(r, b): print("error.reason exception %s" % e) raise - o = chroot.popen("cat > %s" % b.src_rpm, mode = "wb") + o = chroot.popen("cat > %s" % b.src_rpm, mode = "w") try: bytes = util.sendfile(f, o)