]> git.ipfire.org Git - location/location-database.git/commitdiff
downloader: Only strip right hand side of lines
authorMichael Tremer <michael.tremer@ipfire.org>
Tue, 30 Jan 2018 14:00:12 +0000 (14:00 +0000)
committerMichael Tremer <michael.tremer@ipfire.org>
Tue, 30 Jan 2018 14:00:12 +0000 (14:00 +0000)
This should make stripping a bit faster

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
tools/downloader.py

index d2b1511b1d38eb862d6ba80153348ed9e2f89b2e..d6d2744da01d48a89dfd48ea44911e478c57e194 100644 (file)
@@ -96,7 +96,7 @@ class DownloaderContext(object):
                                        break
 
                        # Strip line-endings
-                       line = line.strip()
+                       line = line.rstrip()
 
                        if line:
                                block.append(line)