diff --git a/colorspot.py b/colorspot.py index d2d0403..f378869 100755 --- a/colorspot.py +++ b/colorspot.py @@ -58,12 +58,10 @@ class ColorSpot(): self.confirmed_entities = self.get_confirmed_entities() if self.check_cty: - #self.cty = list(csv.reader(open(self.config['files']['cty'], "r"), delimiter=",")) with open(self.config['files']['cty'], encoding='us-ascii') as csvfile: self.cty = list(csv.reader(csvfile, delimiter=',')) - def print_banner(self): """print an awesome banner""" print(fg(self.rnd_col())+" ___ _ ___ _ ") @@ -225,7 +223,6 @@ class ColorSpot(): """Reads the LotW user activity file and returns the date of the last upload date if a specific call sign""" ret = "" - #csv_file = csv.reader(open(self.config['files']['lotw_activity'], "r"), delimiter=",") with open(self.config['files']['lotw_activity'], encoding='us-ascii') as csvfile: csv_file = csv.reader(csvfile, delimiter=',') #loop through the csv file