From: Michael Tremer Date: Tue, 30 Jan 2018 14:01:08 +0000 (+0000) Subject: downloader: Skip commented lines X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=b69b6b92a7fc883a4f869765b276dd624eb8d3c1;p=location%2Flocation-database.git downloader: Skip commented lines Signed-off-by: Michael Tremer --- diff --git a/tools/downloader.py b/tools/downloader.py index d6d2744..47e2f34 100644 --- a/tools/downloader.py +++ b/tools/downloader.py @@ -98,6 +98,10 @@ class DownloaderContext(object): # Strip line-endings line = line.rstrip() + # Skip commented lines + if line.startswith("#"): + continue + if line: block.append(line) continue