remove whitespace before comments in input file URLs (#2808)

This commit is contained in:
Mike Fährmann
2022-09-09 12:04:29 +02:00
parent b36125333f
commit bdad9c40dd

View File

@@ -96,9 +96,9 @@ def parse_inputfile(file, log):
else:
# url
if " #" in line:
line = line.partition(" #")[0]
line = line.partition(" #")[0].rstrip()
elif "\t#" in line:
line = line.partition("\t#")[0]
line = line.partition("\t#")[0].rstrip()
if gconf or lconf:
yield util.ExtendedUrl(line, gconf, lconf)
gconf = []