mirror of
https://github.com/StevenBlack/hosts.git
synced 2024-07-07 13:02:27 +02:00
Issue #77: fix - trim trailing whitespace from input lines.
This commit is contained in:
parent
97ef0fdded
commit
883faf0f64
@ -315,6 +315,8 @@ def removeDupsAndExcl(mergeFile):
|
||||
exclusions = settings["exclusions"]
|
||||
for line in mergeFile.readlines():
|
||||
write = 'true'
|
||||
# Trim trailing whitespace
|
||||
line = line.rstrip()
|
||||
# Explicit encoding
|
||||
line = line.decode("UTF-8")
|
||||
# replace tabs with space
|
||||
|
Loading…
Reference in New Issue
Block a user