mirror of
https://github.com/armbian/dl-router.git
synced 2026-01-06 10:32:39 -08:00
close csv file after reading
This commit is contained in:
@@ -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):
|
||||
|
||||
Reference in New Issue
Block a user