From 44603ac3dab3f2628112f964080c1871f6c77d84 Mon Sep 17 00:00:00 2001 From: zsloan Date: Mon, 22 May 2023 17:35:24 +0000 Subject: Include encoding in open statement to address pylint W1514 --- gn3/db/datasets.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'gn3/db') diff --git a/gn3/db/datasets.py b/gn3/db/datasets.py index 38cd16c..4fdf797 100644 --- a/gn3/db/datasets.py +++ b/gn3/db/datasets.py @@ -15,7 +15,7 @@ def retrieve_sample_list(group: str): samplelist = [] genofile_path = os.environ.get("GENENETWORK_FILES") + "/genotype/" + group + ".geno" if os.path.isfile(genofile_path): - with open(genofile_path, "r") as genofile: + with open(genofile_path, encoding="utf-8") as genofile: line = "" for line in genofile: line = line.strip() -- cgit v1.2.3