‘hostsFile’ is a better variable name here than ‘dataFile’.

This commit is contained in:
Steven Black
2016-12-18 18:34:41 -05:00
parent ad2100aaf2
commit d39ad733dc

View File

@@ -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