From df11ae41f3a94edcaf9fdc48a2627cac838b1eea Mon Sep 17 00:00:00 2001 From: Steven Black Date: Sun, 18 Dec 2016 18:34:41 -0500 Subject: [PATCH] =?UTF-8?q?=E2=80=98hostsFile=E2=80=99=20is=20a=20better?= =?UTF-8?q?=20variable=20name=20here=20than=20=E2=80=98dataFile=E2=80=99.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- updateHostsFile.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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