From 177436f740b6ac842a9dae411e695c0464ca6a36 Mon Sep 17 00:00:00 2001 From: Daniele Forsi Date: Sat, 24 Jun 2023 21:35:00 +0200 Subject: [PATCH] Remove unused variable and unneeded seek() Fixes: chirp/drivers/generic_csv.py:199:12: W0612: Unused variable 'header' (unused-variable) --- chirp/drivers/generic_csv.py | 2 -- 1 file changed, 2 deletions(-) diff --git a/chirp/drivers/generic_csv.py b/chirp/drivers/generic_csv.py index 49a2adb24..1d5cf4fe4 100644 --- a/chirp/drivers/generic_csv.py +++ b/chirp/drivers/generic_csv.py @@ -196,8 +196,6 @@ def load(self, filename=None): self._blank() with open(self._filename, newline='', encoding='utf-8') as f: - header = f.readline().strip() - f.seek(0, 0) return self._load(f) def _load(self, f):