git.99rst.org
/
stevenblack-hosts.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
| inline |
side by side
(parent:
97ef0fd
)
Issue #77: fix - trim trailing whitespace from input lines.
author
Steven Black
<redacted>
Thu, 24 Mar 2016 22:27:24 +0000
(18:27 -0400)
committer
Steven Black
<redacted>
Thu, 24 Mar 2016 22:27:24 +0000
(18:27 -0400)
updateHostsFile.py
patch
|
blob
|
history
diff --git
a/updateHostsFile.py
b/updateHostsFile.py
index dfd4703ffcc41c52fa568d479348e3ed43542649..94bce08bb7809c4bbc349f905517017c785028bb 100644
(file)
--- a/
updateHostsFile.py
+++ b/
updateHostsFile.py
@@
-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
git clone https://git.99rst.org/PROJECT