Skip to content

Commit

Permalink
Issue #77: fix - replace tabs with space.
Browse files Browse the repository at this point in the history
  • Loading branch information
StevenBlack committed Feb 15, 2016
1 parent d69aa1a commit a4b254d
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions updateHostsFile.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit a4b254d

Please sign in to comment.