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:
d69aa1a
)
Issue #77: fix - replace tabs with space.
author
Steven Black
<redacted>
Mon, 15 Feb 2016 17:36:38 +0000
(12:36 -0500)
committer
Steven Black
<redacted>
Mon, 15 Feb 2016 17:36:38 +0000
(12:36 -0500)
updateHostsFile.py
patch
|
blob
|
history
diff --git
a/updateHostsFile.py
b/updateHostsFile.py
index 358eda58cbef15036b85b64052c7628bf56c3931..308f4704bbde9831ee6efe3b5ccf27598fcdeb62 100644
(file)
--- a/
updateHostsFile.py
+++ b/
updateHostsFile.py
@@
-251,6
+251,8
@@
def removeDupsAndExcl(mergeFile):
write = 'true'
# Explicit encoding
line = line.decode("UTF-8")
+ # replace tabs with space
+ line = line.replace('\t+', ' ')
# Testing the first character doesn't require startswith
if line[0] == '#' or re.match(r'^\s*$', line[0]):
# Cross-python write
git clone https://git.99rst.org/PROJECT