Issue #77: fix - trim trailing whitespace from input lines.
authorSteven Black <redacted>
Thu, 24 Mar 2016 22:27:24 +0000 (18:27 -0400)
committerSteven Black <redacted>
Thu, 24 Mar 2016 22:27:24 +0000 (18:27 -0400)
updateHostsFile.py

index dfd4703ffcc41c52fa568d479348e3ed43542649..94bce08bb7809c4bbc349f905517017c785028bb 100644 (file)
@@ -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