mirror of
https://github.com/StevenBlack/hosts.git
synced 2026-11-19 16:46:32 +00:00
‘hostsFile’ is a better variable name here than ‘dataFile’.
This commit is contained in:
1 parent
ad2100aaf2
commit
d39ad733dc
1 file changed
+3
-3
+3
-3
@@ -259,9 +259,9 @@ def updateAllSources():
|
||||
updatedFile = updatedFile.replace("\r", "") #get rid of carriage-return symbols
|
||||
|
||||
# This is cross-python code
|
||||
dataFile = open(os.path.join(BASEDIR_PATH, os.path.dirname(source), settings["hostfilename"]), "wb")
|
||||
writeData(dataFile, updatedFile)
|
||||
dataFile.close()
|
||||
hostsFile = open(os.path.join(BASEDIR_PATH, os.path.dirname(source), settings["hostfilename"]), "wb")
|
||||
writeData(hostsFile, updatedFile)
|
||||
hostsFile.close()
|
||||
except:
|
||||
print ("Skipping.")
|
||||
# End Update Logic
|
||||
|
||||
Reference in new issue
Block a user