Skip to content

Commit

Permalink
update .py
Browse files Browse the repository at this point in the history
  • Loading branch information
txthinking committed Jun 16, 2014
1 parent 875a433 commit 60de9fb
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions scripts/updateHosts.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,9 +22,8 @@ def GetRemoteHosts(hostsUrl):
yourHosts = ""
if os.path.isfile(hostsPath):
fp = open(hostsPath, "r")
while 1:
line = fp.readline()
if line == search or line == "":
for line in fp:
if line == search:
break
yourHosts += line
fp.close()
Expand Down

0 comments on commit 60de9fb

Please sign in to comment.