]> git.ipfire.org Git - location/location-database.git/commitdiff
util: In the RIPE database, % is a comment, too
authorMichael Tremer <michael.tremer@ipfire.org>
Tue, 30 Jan 2018 15:17:12 +0000 (15:17 +0000)
committerMichael Tremer <michael.tremer@ipfire.org>
Tue, 30 Jan 2018 15:17:12 +0000 (15:17 +0000)
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
tools/util.py

index 9cdca702307c53c2ef1d7edef7aa956d47db877e..d3a8f24cc7c3bd7fa577fa9377d341ebb69b65cc 100644 (file)
@@ -37,7 +37,7 @@ def iterate_over_blocks(f, charsets=("utf-8", "latin1")):
                line = line.rstrip()
 
                # Skip commented lines
-               if line.startswith("#"):
+               if line.startswith("#") or line.startswith("%"):
                        continue
 
                if line: