From e78629924c9bc4d409d99a98aa697c5eefa6e9ac Mon Sep 17 00:00:00 2001 From: Marcin Krol Date: Sun, 2 May 2021 18:44:29 +0200 Subject: [PATCH] - cast stream size to float --- 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 b266947..b7ca2cd 100644 --- a/TLD_Builder/rpm_builder.py +++ b/TLD_Builder/rpm_builder.py @@ -134,7 +134,7 @@ def fetch_src(r, b): b.log_line("error: unable to write to `%s': %s" % (b.src_rpm, e)) raise - bytes = f.headers['content-length'] + bytes = float(f.headers['content-length']) f.close() o.close() t = time.time() - start -- 2.46.0