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

pull/2910/head
Mike Fährmann 2 years ago
parent b36125333f
commit bdad9c40dd
No known key found for this signature in database
GPG Key ID: 5680CA389D365A88

@ -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 = []

Loading…
Cancel
Save