From 5e7e1549fe6ade8485419ffa125843bdb07cf35b Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Sebastian=20M=C3=BCller?= <mueller.seb@posteo.de>
Date: Mon, 21 Aug 2023 15:49:47 +0200
Subject: [PATCH] fix pylint dict issues

---
 src/finam/data/esri_tools.py | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/finam/data/esri_tools.py b/src/finam/data/esri_tools.py
index 245eb879..d6f36bcc 100644
--- a/src/finam/data/esri_tools.py
+++ b/src/finam/data/esri_tools.py
@@ -91,7 +91,7 @@ def read_header(file):
     "xllcorner" and "yllcorner" resepectively.
     """
     header_lines = _extract_header(file)
-    return standardize_header({n: v for (n, v) in header_lines})
+    return standardize_header(dict(header_lines))
 
 
 def read_grid(file, dtype=None):
@@ -120,7 +120,7 @@ def read_grid(file, dtype=None):
         If data shape is not matching the given header.
     """
     header_lines = _extract_header(file)
-    header = standardize_header({n: v for (n, v) in header_lines})
+    header = standardize_header(dict(header_lines))
     # last line could already be data if "nodata_value" is missing
     numeric_last = _is_number(header_lines[-1][0])
     header_size = len(header_lines) - int(numeric_last)
-- 
GitLab