From 8488bcdcf5fc350ef3a9c99b7ac0c83c2f6621d5 Mon Sep 17 00:00:00 2001 From: Michael Tremer Date: Tue, 30 Jan 2018 14:00:12 +0000 Subject: [PATCH] downloader: Only strip right hand side of lines This should make stripping a bit faster Signed-off-by: Michael Tremer --- tools/downloader.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/downloader.py b/tools/downloader.py index d2b1511..d6d2744 100644 --- a/tools/downloader.py +++ b/tools/downloader.py @@ -96,7 +96,7 @@ class DownloaderContext(object): break # Strip line-endings - line = line.strip() + line = line.rstrip() if line: block.append(line) -- 2.47.3