From: Steven Black Date: Sun, 18 Dec 2016 23:34:41 +0000 (-0500) Subject: ‘hostsFile’ is a better variable name here than ‘dataFile’. X-Git-Url: http://git.99rst.org/?a=commitdiff_plain;h=d39ad733dc7bfd7d1ae9718252125d12a886da04;p=stevenblack-hosts.git ‘hostsFile’ is a better variable name here than ‘dataFile’. --- diff --git a/updateHostsFile.py b/updateHostsFile.py index 87e312279..295bced98 100644 --- a/updateHostsFile.py +++ b/updateHostsFile.py @@ -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