From c48814a61b7401715efc83bd3a276fd2507ac66d Mon Sep 17 00:00:00 2001 From: Drew DeVault Date: Tue, 12 Feb 2019 19:11:51 -0500 Subject: [PATCH] Same fix, different branch --- buildsrht/blueprints/jobs.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/buildsrht/blueprints/jobs.py b/buildsrht/blueprints/jobs.py index 369e9e1..2cec7c2 100644 --- a/buildsrht/blueprints/jobs.py +++ b/buildsrht/blueprints/jobs.py @@ -224,7 +224,7 @@ def logify(text, task, log_url): text = text[text.index('\n')+1:] except ValueError: pass - nlines = text.encode().count(b'\n') + nlines = len(text.splitlines()) text = (Markup('
')
                 + Markup(''
                     'This is a big file! Only the last 128KiB is shown. '
-- 
2.38.5