From 4c1b8295857d2b8d2b2975c4030d61c3f1b61bcb Mon Sep 17 00:00:00 2001 From: Marcin Krol Date: Sun, 2 May 2021 15:24:24 +0200 Subject: [PATCH] - mode wb not allowed in os.popen --- TLD_Builder/rpm_builder.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) -- 2.46.0