mirror of
https://github.com/StevenBlack/hosts.git
synced 2026-11-16 07:28:01 +00:00
Fixes #102.
This commit is contained in:
1 parent
e946d6fa8f
commit
31ea0fc25b
1 file changed
+1
-1
+1
-1
@@ -292,7 +292,7 @@ def removeDupsAndExcl(mergeFile):
|
||||
os.makedirs(outputPath)
|
||||
|
||||
# Another mode is required to read and write the file in Python 3
|
||||
finalFile = open(os.path.join(outputPath, 'hosts'), 'w+')
|
||||
finalFile = open(os.path.join(outputPath, 'hosts'), 'r+')
|
||||
mergeFile.seek(0) # reset file pointer
|
||||
|
||||
hostnames = set()
|
||||
|
||||
Reference in new issue
Block a user