close csv file after reading

This commit is contained in:
lanefu
2021-08-28 13:53:41 -04:00
parent 1a1bfc4a16
commit 2939b6ca40

View File

@@ -32,6 +32,7 @@ class Parser():
with open(self.csv_file) as f:
csvreader = csv.reader(f, delimiter='|')
data = list(csvreader)
f.close()
return data
def get_data(self):