diff options
author | zsloan | 2023-05-22 17:35:24 +0000 |
---|---|---|
committer | zsloan | 2023-05-22 17:35:24 +0000 |
commit | 44603ac3dab3f2628112f964080c1871f6c77d84 (patch) | |
tree | 9149af676646adb18cbbf906ce27ec27c2075bb7 /gn3/db | |
parent | 8c1add0155160092c9e7980e2d7da5b7d1ddfa0f (diff) | |
download | genenetwork3-44603ac3dab3f2628112f964080c1871f6c77d84.tar.gz |
Include encoding in open statement to address pylint W1514
Diffstat (limited to 'gn3/db')
-rw-r--r-- | gn3/db/datasets.py | 2 |
1 files changed, 1 insertions, 1 deletions
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() |