From 08a27b65b91cec12ec2a44945090ca8b9fabd8dd Mon Sep 17 00:00:00 2001 From: Frederick Muriuki Muriithi Date: Fri, 11 Mar 2022 12:09:22 +0300 Subject: Fix typing errors --- gn3/db/genotypes.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'gn3/db') diff --git a/gn3/db/genotypes.py b/gn3/db/genotypes.py index 0e19a5f..6f867c7 100644 --- a/gn3/db/genotypes.py +++ b/gn3/db/genotypes.py @@ -50,8 +50,8 @@ def __load_genotype_samples_from_geno(genotype_filename: str): gzipped_filename = f"{genotype_filename}.gz" if os.path.isfile(gzipped_filename): - with gzip.open(gzipped_filename) as genofile: - rows = __remove_comments_and_empty_lines__(genofile.readlines()) + with gzip.open(gzipped_filename) as gz_genofile: + rows = __remove_comments_and_empty_lines__(gz_genofile.readlines()) else: with open(genotype_filename, encoding="utf8") as genofile: rows = __remove_comments_and_empty_lines__(genofile.readlines()) -- cgit v1.2.3