From: Michael Tremer Date: Tue, 30 Jan 2018 14:00:12 +0000 (+0000) Subject: downloader: Only strip right hand side of lines X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=8488bcdcf5fc350ef3a9c99b7ac0c83c2f6621d5;p=location%2Flocation-database.git downloader: Only strip right hand side of lines This should make stripping a bit faster Signed-off-by: Michael Tremer --- 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)